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:
@@ -84,7 +84,7 @@ function site_init {
|
|||||||
cd $target_dir
|
cd $target_dir
|
||||||
php artisan migrate --env=$LARAVEL_ENV
|
php artisan migrate --env=$LARAVEL_ENV
|
||||||
if [[ $USE_DB_SEEDING -eq 1 ]]; then
|
if [[ $USE_DB_SEEDING -eq 1 ]]; then
|
||||||
php artisan db:seed --env=$LARAVEL_ENV
|
php artisan db:seed --env=$LARAVEL_ENV --force
|
||||||
fi
|
fi
|
||||||
|
|
||||||
update_node
|
update_node
|
||||||
@@ -236,7 +236,7 @@ function site_update {
|
|||||||
|
|
||||||
# populate application database
|
# populate application database
|
||||||
cd $target_dir
|
cd $target_dir
|
||||||
php artisan migrate --env=$LARAVEL_ENV
|
php artisan migrate --env=$LARAVEL_ENV --force
|
||||||
update_node
|
update_node
|
||||||
install_bower
|
install_bower
|
||||||
# activate site
|
# activate site
|
||||||
|
|||||||
Reference in New Issue
Block a user