Add a basic deploy script
This commit is contained in:
parent
a5ca6f2218
commit
dfd90725fc
1 changed files with 17 additions and 0 deletions
17
deploy.sh
Executable file
17
deploy.sh
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "Putting the Laravel app in maintenance mode"
|
||||
php artisan down
|
||||
|
||||
echo "Updating composer dependencies"
|
||||
composer install
|
||||
|
||||
echo "Caching Laravel route and config files"
|
||||
php artisan route:cache
|
||||
php artisan config:cache
|
||||
|
||||
echo "Restarting the queue daemon"
|
||||
sudo systemctl restart supervisorctl
|
||||
|
||||
echo "Bringing the Laravel app back online"
|
||||
php artisan up
|
Loading…
Add table
Add a link
Reference in a new issue