Update functions to force on production

LV needs flag --force on seed/migration commands
once its on production env.

Change-Id: I1ad92b0fb057a697a9cddce79a6df916506e08b7
This commit is contained in:
Sebastian Marcet 2017-03-10 11:26:14 -03:00
parent 7580a4ed3d
commit 8e08ec78b1
1 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ function site_init {
cd $target_dir
php artisan migrate --env=$LARAVEL_ENV
if [[ $USE_DB_SEEDING -eq 1 ]]; then
php artisan db:seed --env=$LARAVEL_ENV
php artisan db:seed --env=$LARAVEL_ENV --force
fi
update_node
@ -236,7 +236,7 @@ function site_update {
# populate application database
cd $target_dir
php artisan migrate --env=$LARAVEL_ENV
php artisan migrate --env=$LARAVEL_ENV --force
update_node
install_bower
# activate site