From 5bc306b694301c51f06894e0a02bb3939eb424ca Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Tue, 20 Oct 2015 23:05:43 -0400 Subject: [PATCH] Take the site down before updating and bring it back up after --- init.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/init.sh b/init.sh index 496ddb5..2d2394e 100755 --- a/init.sh +++ b/init.sh @@ -50,6 +50,9 @@ trap 'error "script killed"' SIGINT SIGQUIT exit } +msg "Running: ${c_m}php artisan down" +php artisan down || error "${c_m}php artisan down$c_w exited with an error status" + msg "Running: ${c_m}composer installl --no-dev" composer install --no-interaction --no-dev || error "${c_m}composer install --no-interaction --no-dev$c_w exited with an error status" @@ -65,3 +68,5 @@ bower install || error "${c_m}bower install$c_w exited with an error status" msg "Running: ${c_m}gulp --production" gulp --production || error "${c_m}gulp --production$c_w exited with an error status" +msg "Running: ${c_m}php artisan up" +php artisan up || error "${c_m}php artisan up$c_w exited with an error status"