Skip to content

Commit 3a1f2c6

Browse files
author
Ric Harvey
authored
Merge pull request #178 from auchri/patch-3
Add SKIP_COMPOSER flag
2 parents 39658d8 + 5c453dd commit 3a1f2c6

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

docs/config_flags.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ The following flags are a list of all the currently supported options that can b
2424
- **REMOVE_FILES** : Use REMOVE_FILES=0 to prevent the script from clearing out /var/www/html (useful for working with local files)
2525
- **APPLICATION_ENV** : set this to development to prevent composer deleteing local dev dependancies
2626
- **SKIP_CHOWN** : set to 1 to avoid running chown -Rf on /var/www/html
27+
- **SKIP_COMPOSER** : set to 1 to avoid installing composer

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)