Skip to content

Commit

Permalink
use pg_database var in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
mcrumm committed Oct 17, 2020
1 parent 04f6f36 commit 19bd010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Logger.configure(level: :debug)

pg_url = System.get_env("PG_URL") || "postgres:[email protected]"
pg_database = System.get_env("PG_DATABASE") || "phx_dashboard_dev"
Application.put_env(:phoenix_live_dashboard, Demo.Repo, url: "ecto://#{pg_url}/bytepack_dev")
Application.put_env(:phoenix_live_dashboard, Demo.Repo, url: "ecto://#{pg_url}/#{pg_database}")

defmodule Demo.Repo do
use Ecto.Repo, otp_app: :phoenix_live_dashboard, adapter: Ecto.Adapters.Postgres
Expand Down

0 comments on commit 19bd010

Please sign in to comment.