File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -62,12 +62,6 @@ if [ ! -d "/var/www/html/.git" ]; then
6262 fi
6363fi
6464
65- # Try auto install for composer
66- if [ -f " /var/www/html/composer.lock" ]; then
67- composer global require hirak/prestissimo
68- composer install --no-dev --working-dir=/var/www/html
69- fi
70-
7165# Enable custom nginx config files if they exist
7266if [ -f /var/www/html/conf/nginx/nginx.conf ]; then
7367 cp /var/www/html/conf/nginx/nginx.conf /etc/nginx/nginx.conf
@@ -192,6 +186,17 @@ if [[ "$RUN_SCRIPTS" == "1" ]] ; then
192186 fi
193187fi
194188
189+ # Try auto install for composer
190+ if [ -f " /var/www/html/composer.lock" ]; then
191+ if [ " $APPLICATION_ENV " == " development" ]; then
192+ composer global require hirak/prestissimo
193+ composer install --working-dir=/var/www/html
194+ else
195+ composer global require hirak/prestissimo
196+ composer install --no-dev --working-dir=/var/www/html
197+ fi
198+ fi
199+
195200# Start supervisord and services
196201exec /usr/bin/supervisord -n -c /etc/supervisord.conf
197202
You can’t perform that action at this time.
0 commit comments