Skip to content

Commit

Permalink
Do not run composer install in prod (dunglas#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmenozzi authored Nov 5, 2021
1 parent d4c3b50 commit 1364979
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docker/php/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ if [ "$1" = 'php-fpm' ] || [ "$1" = 'php' ] || [ "$1" = 'bin/console' ]; then
cd -

rm -Rf tmp/
elif [ "$APP_ENV" != 'prod' ]; then
rm -f .env.local.php
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 [ "$CREATION" = "1" ]; then
Expand Down

0 comments on commit 1364979

Please sign in to comment.