Skip to content

Commit 3445aac

Browse files
authored
fix: properly check for DB environment (#107)
Make sure the `DATABASE_URL` is checked without comments :)
1 parent 80dc4fb commit 3445aac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker/php/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ if [ "$1" = 'php-fpm' ] || [ "$1" = 'php' ] || [ "$1" = 'bin/console' ]; then
2929
composer install --prefer-dist --no-progress --no-interaction
3030
fi
3131

32-
if grep -q DATABASE_URL= .env; then
32+
if grep -q ^DATABASE_URL= .env; then
3333
echo "Waiting for db to be ready..."
3434
ATTEMPTS_LEFT_TO_REACH_DATABASE=60
3535
until [ $ATTEMPTS_LEFT_TO_REACH_DATABASE -eq 0 ] || bin/console doctrine:query:sql "SELECT 1" >/dev/null 2>&1; do

0 commit comments

Comments
 (0)