From b3fa4089640adca6ae9ddebb348d64c683133224 Mon Sep 17 00:00:00 2001 From: idanoo Date: Sat, 1 Oct 2022 20:05:22 +1300 Subject: [PATCH] No-dev and dump autoload --- update.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/update.sh b/update.sh index a7c13bb..2bdcfcf 100755 --- a/update.sh +++ b/update.sh @@ -8,7 +8,8 @@ WEB_USER=www-data set +x su - $WEB_USER -s /bin/bash -c "cd $WEB_ROOT && git pull" -su - $WEB_USER -s /bin/bash -c "cd $WEB_ROOT && composer install --no-ansi --no-interaction --no-progress --no-scripts --optimize-autoloader" +su - $WEB_USER -s /bin/bash -c "cd $WEB_ROOT && composer install --no-ansi --no-dev --no-interaction --no-progress --no-scripts --optimize-autoloader" +su - $WEB_USER -s /bin/bash -c "cd $WEB_ROOT && composer dump-autoload --optimize" su - $WEB_USER -s /bin/bash -c "cd $WEB_ROOT && php artisan config:cache" su - $WEB_USER -s /bin/bash -c "cd $WEB_ROOT && php artisan route:cache" su - $WEB_USER -s /bin/bash -c "cd $WEB_ROOT && php artisan migrate --force"