fix: allow using different PostgreSQL port than default when using socket_dir connection (#4979)

Signed-off-by: jaypark0006 <163750793+jaypark0006@users.noreply.github.com>
This commit is contained in:
jaypark0006
2025-10-04 17:46:19 +08:00
committed by GitHub
parent 33f7f4bf59
commit fa85d5ade8
+3 -1
View File
@@ -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,