mirror of
https://github.com/teslamate-org/teslamate.git
synced 2026-01-24 21:06:08 +08:00
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:
+3
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user