Skip to content

Commit

Permalink
🚀 Fix update script (#2864)
Browse files Browse the repository at this point in the history
  • Loading branch information
HerrLevin authored Aug 16, 2024
1 parent 923fd02 commit 245695d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,22 @@ run_migrations() {
post_run() {
php artisan optimize

php artisan db:seed --class=Database\\Seeders\\Constants\\PermissionSeeder --force
php artisan up
}

restart_queue() {
if [ -f /etc/systemd/system/traewelling-queue.service ]; then
sudo systemctl restart traewelling-queue
fi

if [ -f /etc/systemd/system/traewelling-queue-webhook.service ]; then
sudo systemctl restart traewelling-queue-webhook
fi

php artisan db:seed --class=Database\\Seeders\\Constants\\PermissionSeeder --force
php artisan up
}

pre_run
run_migrations
update_ui
post_run
restart_queue

0 comments on commit 245695d

Please sign in to comment.