mirror of
https://github.com/idanoo/pixelfed-upgrade-script
synced 2025-07-01 13:52:17 +00:00
18 lines
692 B
Bash
Executable file
18 lines
692 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# CONFIGURATION #
|
|
|
|
WEB_ROOT=/var/www/pixelfed
|
|
WEB_USER=www-data
|
|
|
|
# DO NOT EDIT BELOW THIS LINE #
|
|
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 && 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"
|
|
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"
|
|
|