From e81396f99a1d2af2b1ae40d94d96c6cc44bdbb75 Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Mon, 15 Jan 2018 17:30:10 -0500 Subject: [PATCH] Allow switching PG port with env variable --- config/test.exs | 1 + 1 file changed, 1 insertion(+) diff --git a/config/test.exs b/config/test.exs index eb40687..fea6c11 100644 --- a/config/test.exs +++ b/config/test.exs @@ -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"