Skip to content

Commit

Permalink
[#10] Add deploy.sh, untested
Browse files Browse the repository at this point in the history
  • Loading branch information
xuchunyang committed Mar 26, 2024
1 parent 49ceff8 commit 432f407
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash

php artisan down

composer install --no-dev --optimize-autoloader --no-interaction

php artisan migrate --force

php artisan optimize

# 重启队列,因为 artisan queue:work 常驻后台,如果不重启不会收到新代码
php artisan queue:restart

# 重启 Laravel Reverb,但是我推测:除了修改 reverb 配置,不然也不用重启
php artisan reverb:restart

npm ci && npm run build

php artisan up

0 comments on commit 432f407

Please sign in to comment.