1
0
mirror of https://github.com/danbee/chess synced 2025-03-04 08:39:06 +00:00

Allow switching PG port with env variable

This commit is contained in:
Daniel Barber 2018-01-15 17:30:10 -05:00
parent 41a9faabc9
commit e81396f99a
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8

View File

@ -14,6 +14,7 @@ config :chess, Chess.Repo,
adapter: Ecto.Adapters.Postgres,
database: "chess_test",
hostname: "localhost",
port: System.get_env("POSTGRES_PORT") || "5432",
pool: Ecto.Adapters.SQL.Sandbox
config :hound, driver: "phantomjs"