From aed90cda098f2231ea84dcd8405a0edb3af802d8 Mon Sep 17 00:00:00 2001 From: Daniel Mason Date: Fri, 18 Aug 2023 14:57:20 +1200 Subject: [PATCH] Clean up & comment --- update.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/update.sh b/update.sh index 02557ff..a99d3ed 100755 --- a/update.sh +++ b/update.sh @@ -3,6 +3,7 @@ # CONFIGURATION # WEB_ROOT=/var/www/pixelfed WEB_USER=www-data +HORIZON_SERVICE=horizon.service # END CONFIGURATION # set +x @@ -14,8 +15,5 @@ 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" -# Make sure we restart workers on new code too -sudo systemctl restart horizon.service - -#su - $WEB_USER -s /bin/bash -c "cd $WEB_ROOT && php artisan horizon:purge" -#su - $WEB_USER -s /bin/bash -c "cd $WEB_ROOT && php artisan storage:link" +# Make sure we restart Horizon workers too +sudo systemctl restart $HORIZON_SERVICE