Merge branch 'master' of git://github.com/hkeio/nginx-php-fpm into hkeio-master

This commit is contained in:
Ric Harvey
2017-08-25 11:09:02 +01:00

View File

@@ -62,12 +62,6 @@ if [ ! -d "/var/www/html/.git" ]; then
fi
fi
# Try auto install for composer
if [ -f "/var/www/html/composer.lock" ]; then
composer global require hirak/prestissimo
composer install --no-dev --working-dir=/var/www/html
fi
# Enable custom nginx config files if they exist
if [ -f /var/www/html/conf/nginx/nginx.conf ]; then
cp /var/www/html/conf/nginx/nginx.conf /etc/nginx/nginx.conf
@@ -192,6 +186,17 @@ if [[ "$RUN_SCRIPTS" == "1" ]] ; then
fi
fi
# Try auto install for composer
if [ -f "/var/www/html/composer.lock" ]; then
if [ "$APPLICATION_ENV" == "development" ]; then
composer global require hirak/prestissimo
composer install --working-dir=/var/www/html
else
composer global require hirak/prestissimo
composer install --no-dev --working-dir=/var/www/html
fi
fi
# Start supervisord and services
exec /usr/bin/supervisord -n -c /etc/supervisord.conf