Add SKIP_COMPOSER flag

This commit is contained in:
Christoph
2017-10-05 08:55:48 +02:00
committed by GitHub
parent 39658d8ab2
commit acf1ba0087

View File

@@ -189,8 +189,9 @@ if [[ "$RUN_SCRIPTS" == "1" ]] ; then
fi fi
fi fi
# Try auto install for composer if [ -z "$SKIP_COMPOSER" ]; then
if [ -f "/var/www/html/composer.lock" ]; then # Try auto install for composer
if [ -f "/var/www/html/composer.lock" ]; then
if [ "$APPLICATION_ENV" == "development" ]; then if [ "$APPLICATION_ENV" == "development" ]; then
composer global require hirak/prestissimo composer global require hirak/prestissimo
composer install --working-dir=/var/www/html composer install --working-dir=/var/www/html
@@ -198,6 +199,7 @@ if [ -f "/var/www/html/composer.lock" ]; then
composer global require hirak/prestissimo composer global require hirak/prestissimo
composer install --no-dev --working-dir=/var/www/html composer install --no-dev --working-dir=/var/www/html
fi fi
fi
fi fi
# Start supervisord and services # Start supervisord and services