Skip to content

Commit

Permalink
fix: Unable to change DATABASE_DISABLE_MIGRATIONS in non-prod environ…
Browse files Browse the repository at this point in the history
…ment 🐛
  • Loading branch information
gremo committed Jun 28, 2023
1 parent a1a275f commit dd93806
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker/php/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ set -e
: ${CONSOLE:="bin/console"}
: ${WRITABLE_DIRS:="public/media/ public/uploads/ var/"}
: ${KNOWN_HOSTS:="bitbucket.org github.com gitlab.com"}
: ${DATABASE_DISABLE_MIGRATIONS:=$( [ "$APP_ENV" = "dev" ] && echo "true" )}

if [ "${DATABASE_DISABLE_MIGRATIONS+set}" != set ]; then
: ${DATABASE_DISABLE_MIGRATIONS:=$( [ "$APP_ENV" = "prod" ] || echo "true" )}
fi

if [ "${1#-}" != "$1" ]; then
set -- php-fpm "$@"
Expand Down

0 comments on commit dd93806

Please sign in to comment.