diff --git a/files/functions b/files/functions index d28eeed..b5d8513 100644 --- a/files/functions +++ b/files/functions @@ -88,7 +88,8 @@ function site_init { fi update_node - install_bower + npm install + npm run build # activate site rm -rf $SITE_ROOT/w ln -s $SITE_ROOT/slot0 $SITE_ROOT/w @@ -140,16 +141,6 @@ function update_node { n latest; } -function install_bower { - npm install -g bower; - npm install -g webpack; - cd $target_dir; - # run bower - if [ -f "$target_dir/bower.json" ]; then - bower install --allow-root --config.interactive=false - fi -} - function site_update { if [ ! $1 ]; then echo "ERROR: missing site parameter" @@ -238,7 +229,8 @@ function site_update { cd $target_dir php artisan migrate --env=$LARAVEL_ENV --force update_node - install_bower + npm install + npm run build # activate site rm -rf $SITE_ROOT/w ln -s $target_dir $SITE_ROOT/w