use DATABASE_URL in dev mode

This commit is contained in:
shibao 2021-09-10 00:19:57 -04:00 committed by oliviasculley
parent 2291da1c17
commit c28b243358

View File

@ -2,7 +2,9 @@ import Config
# Configure your database
config :cannery, Cannery.Repo,
url: "ecto://postgres:postgres@localhost/cannery_dev",
url:
System.get_env("DATABASE_URL") ||
"ecto://postgres:postgres@localhost/cannery_dev",
pool_size: 10
# For development, we disable any cache and enable