mirror of
https://github.com/idanoo/pixelfed-upgrade-script
synced 2025-07-01 05:42:16 +00:00
Update repo
This commit is contained in:
parent
c610fdab6b
commit
5fa2a4ec05
1 changed files with 4 additions and 2 deletions
|
@ -1,11 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
# CONFIGURATION #
|
||||
|
||||
WEB_ROOT=/var/www/pixelfed
|
||||
WEB_USER=www-data
|
||||
# END CONFIGURATION #
|
||||
|
||||
# DO NOT EDIT BELOW THIS LINE #
|
||||
set +x
|
||||
|
||||
su - $WEB_USER -s /bin/bash -c "cd $WEB_ROOT && git pull"
|
||||
|
@ -13,6 +12,9 @@ su - $WEB_USER -s /bin/bash -c "cd $WEB_ROOT && composer install --no-ansi --no-
|
|||
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 supervisorctl restart horizon
|
||||
|
||||
#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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue