mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-09 19:26:38 -05:00
Only take artisan down and bring it back up at the beginning and end of the init.sh script if the vendor folder exists
This commit is contained in:
parent
79203673e8
commit
f7f9d969de
1 changed files with 10 additions and 4 deletions
14
init.sh
14
init.sh
|
@ -50,8 +50,11 @@ trap 'error "script killed"' SIGINT SIGQUIT
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
msg "Running: ${c_m}php artisan down"
|
[[ -d vendor ]] && {
|
||||||
php artisan down
|
artisan_down=1
|
||||||
|
msg "Running: ${c_m}php artisan down"
|
||||||
|
php artisan down
|
||||||
|
}
|
||||||
|
|
||||||
msg "Running: ${c_m}composer installl --no-dev"
|
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"
|
composer install --no-interaction --no-dev || error "${c_m}composer install --no-interaction --no-dev$c_w exited with an error status"
|
||||||
|
@ -68,5 +71,8 @@ bower install || error "${c_m}bower install$c_w exited with an error status"
|
||||||
msg "Running: ${c_m}gulp --production"
|
msg "Running: ${c_m}gulp --production"
|
||||||
gulp --production || error "${c_m}gulp --production$c_w exited with an error status"
|
gulp --production || error "${c_m}gulp --production$c_w exited with an error status"
|
||||||
|
|
||||||
msg "Running: ${c_m}php artisan up"
|
(( artisan_down )) && {
|
||||||
php artisan up
|
msg "Running: ${c_m}php artisan up"
|
||||||
|
php artisan up
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue