Update install.sh
Since $ASSETS can be empty now and only be “build”.
This commit is contained in:
parent
40c47f7023
commit
04d5c60216
19
install.sh
19
install.sh
@ -1,15 +1,8 @@
|
|||||||
#! /usr/bin/env bash
|
#! /usr/bin/env bash
|
||||||
|
|
||||||
if [[ $ASSETS == 'nobuild' ]]; then
|
if [[ $ASSETS == 'build' ]]; then
|
||||||
composer install --no-interaction --no-progress --prefer-dist -o
|
|
||||||
else
|
|
||||||
|
|
||||||
echo "Installing PHP dependencies through Composer..."
|
echo "Installing PHP dependencies through Composer..."
|
||||||
if [[ $ASSETS == 'build' ]]; then
|
composer install --no-interaction --no-progress --prefer-dist -o
|
||||||
composer install --no-interaction --no-progress --prefer-dist -o
|
|
||||||
else
|
|
||||||
SYMFONY_ENV=prod composer install --no-dev -o --prefer-dist
|
|
||||||
fi
|
|
||||||
|
|
||||||
chmod ugo+x vendor/mouf/nodejs-installer/bin/local/npm
|
chmod ugo+x vendor/mouf/nodejs-installer/bin/local/npm
|
||||||
echo "Downloading javascript librairies through npm..."
|
echo "Downloading javascript librairies through npm..."
|
||||||
@ -20,10 +13,6 @@ else
|
|||||||
|
|
||||||
echo "Concat, minify and installing assets..."
|
echo "Concat, minify and installing assets..."
|
||||||
node_modules/grunt/bin/grunt
|
node_modules/grunt/bin/grunt
|
||||||
|
else
|
||||||
if [[ $ASSETS != 'build' ]]; then
|
composer install --no-interaction --no-progress --prefer-dist -o
|
||||||
echo "Installing wallabag..."
|
|
||||||
php bin/console wallabag:install --env=prod
|
|
||||||
fi
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user