Compare commits

..

No commits in common. "main" and "0.1.1" have entirely different histories.
main ... 0.1.1

View file

@ -8,13 +8,6 @@ HORIZON_SERVICE=horizon.service
set +x
# We want to su into web user, so lets be root
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
# Run the stuff
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-dev --no-interaction --no-progress --no-scripts --optimize-autoloader"
su - $WEB_USER -s /bin/bash -c "cd $WEB_ROOT && composer dump-autoload --optimize"
@ -23,4 +16,4 @@ 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"
# Make sure we restart Horizon workers too
systemctl restart $HORIZON_SERVICE
sudo systemctl restart $HORIZON_SERVICE