Skip to content

Commit 8100a53

Browse files
author
Ric Harvey
committed
Merge branch 'hkeio-master'
2 parents 3e48659 + be4c24c commit 8100a53

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

scripts/start.sh

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,6 @@ if [ ! -d "/var/www/html/.git" ]; then
6262
fi
6363
fi
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
7266
if [ -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
193187
fi
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
196201
exec /usr/bin/supervisord -n -c /etc/supervisord.conf
197202

0 commit comments

Comments
 (0)