Do not run composer install in prod (#188)

This commit is contained in:
Manuele Menozzi
2021-11-05 22:36:11 +01:00
committed by GitHub
parent d4c3b50e68
commit 1364979af6

View File

@@ -26,11 +26,12 @@ if [ "$1" = 'php-fpm' ] || [ "$1" = 'php' ] || [ "$1" = 'bin/console' ]; then
cd - cd -
rm -Rf tmp/ rm -Rf tmp/
elif [ "$APP_ENV" != 'prod' ]; then
rm -f .env.local.php
fi fi
composer install --prefer-dist --no-progress --no-interaction if [ "$APP_ENV" != 'prod' ]; then
rm -f .env.local.php
composer install --prefer-dist --no-progress --no-interaction
fi
if grep -q ^DATABASE_URL= .env; then if grep -q ^DATABASE_URL= .env; then
if [ "$CREATION" = "1" ]; then if [ "$CREATION" = "1" ]; then