File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ TRUSTED_HOSTS=localhost,api
13
13
# Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
14
14
# For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
15
15
# Configure your db driver and server_version in config/packages/doctrine.yaml
16
- DATABASE_URL = pgsql ://api-platform:!ChangeMe!@db/api
16
+ DATABASE_URL = postgres ://api-platform:!ChangeMe!@db/api
17
17
# ##< doctrine/doctrine-bundle ###
18
18
19
19
# ##> nelmio/cors-bundle ###
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ TRUSTED_HOSTS=localhost,api
13
13
# Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
14
14
# For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
15
15
# Configure your db driver and server_version in config/packages/doctrine.yaml
16
- DATABASE_URL=pgsql ://api-platform:!ChangeMe!@db/api
16
+ DATABASE_URL=postgres ://api-platform:!ChangeMe!@db/api
17
17
###< doctrine/doctrine-bundle ###
18
18
19
19
###> nelmio/cors-bundle ###
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ if [ "$1" = 'php-fpm' ] || [ "$1" = 'bin/console' ]; then
14
14
if [ " $APP_ENV " != ' prod' ]; then
15
15
composer install --prefer-dist --no-progress --no-suggest --no-interaction
16
16
>&2 echo " Waiting for Postgres to be ready..."
17
- until bin/console doctrine:query:sql " SELECT 1 " --quiet ; do
17
+ until pg_isready --timeout=0 --dbname= " ${DATABASE_URL} " ; do
18
18
sleep 1
19
19
done
20
20
bin/console doctrine:schema:update --force --no-interaction
You can’t perform that action at this time.
0 commit comments