Move script files to a dedicated sub-folder
This commit is contained in:
parent
d7817a7279
commit
66806d77e4
4 changed files with 2 additions and 2 deletions
18
scripts/deploy.sh
Normal file
18
scripts/deploy.sh
Normal file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "Putting the Laravel app in maintenance mode"
|
||||
php artisan down
|
||||
|
||||
echo "Updating composer and dependencies"
|
||||
sudo composer self-update
|
||||
composer install
|
||||
|
||||
echo "Caching Laravel route and config files"
|
||||
php artisan route:cache
|
||||
php artisan config:cache
|
||||
|
||||
echo "Restarting the queue daemon"
|
||||
sudo supervisorctl restart all
|
||||
|
||||
echo "Bringing the Laravel app back online"
|
||||
php artisan up
|
Loading…
Add table
Add a link
Reference in a new issue