File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -24,3 +24,4 @@ The following flags are a list of all the currently supported options that can b
24
24
- ** REMOVE_FILES** : Use REMOVE_FILES=0 to prevent the script from clearing out /var/www/html (useful for working with local files)
25
25
- ** APPLICATION_ENV** : set this to development to prevent composer deleteing local dev dependancies
26
26
- ** SKIP_CHOWN** : set to 1 to avoid running chown -Rf on /var/www/html
27
+ - ** SKIP_COMPOSER** : set to 1 to avoid installing composer
Original file line number Diff line number Diff line change @@ -189,14 +189,16 @@ if [[ "$RUN_SCRIPTS" == "1" ]] ; then
189
189
fi
190
190
fi
191
191
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
200
202
fi
201
203
fi
202
204
You can’t perform that action at this time.
0 commit comments