From dfd90725fcbad38af1a213015f06e9867f643964 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Mon, 27 Feb 2017 11:00:09 +0000 Subject: [PATCH] Add a basic deploy script --- deploy.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 deploy.sh diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 00000000..c1eab083 --- /dev/null +++ b/deploy.sh @@ -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