From fa85d5ade8fbb80e8b690d53eaf9c535503ce209 Mon Sep 17 00:00:00 2001 From: jaypark0006 <163750793+jaypark0006@users.noreply.github.com> Date: Sat, 4 Oct 2025 17:46:19 +0800 Subject: [PATCH] fix: allow using different PostgreSQL port than default when using socket_dir connection (#4979) Signed-off-by: jaypark0006 <163750793+jaypark0006@users.noreply.github.com> --- config/runtime.exs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/runtime.exs b/config/runtime.exs index db8e1c0a..09045df3 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -110,7 +110,9 @@ case System.get_env("DATABASE_SOCKET_DIR") do port: System.get_env("DATABASE_PORT", "5432") socket_dir -> - config :teslamate, TeslaMate.Repo, socket_dir: socket_dir + config :teslamate, TeslaMate.Repo, + socket_dir: socket_dir, + port: System.get_env("DATABASE_PORT", "5432") end config :teslamate, TeslaMate.Repo,