Skip to content

Commit acf1ba0

Browse files
authored
Add SKIP_COMPOSER flag
1 parent 39658d8 commit acf1ba0

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

scripts/start.sh

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -189,14 +189,16 @@ if [[ "$RUN_SCRIPTS" == "1" ]] ; then
189189
fi
190190
fi
191191

192-
# Try auto install for composer
193-
if [ -f "/var/www/html/composer.lock" ]; then
194-
if [ "$APPLICATION_ENV" == "development" ]; then
195-
composer global require hirak/prestissimo
196-
composer install --working-dir=/var/www/html
197-
else
198-
composer global require hirak/prestissimo
199-
composer install --no-dev --working-dir=/var/www/html
192+
if [ -z "$SKIP_COMPOSER" ]; then
193+
# Try auto install for composer
194+
if [ -f "/var/www/html/composer.lock" ]; then
195+
if [ "$APPLICATION_ENV" == "development" ]; then
196+
composer global require hirak/prestissimo
197+
composer install --working-dir=/var/www/html
198+
else
199+
composer global require hirak/prestissimo
200+
composer install --no-dev --working-dir=/var/www/html
201+
fi
200202
fi
201203
fi
202204

0 commit comments

Comments
 (0)