mirror of
https://github.com/teslamate-org/teslamate.git
synced 2026-01-24 21:06:08 +08:00
Support custom database port through environment DATABASE_PORT env var
Based on example from https://github.com/elixir-ecto/ecto
This commit is contained in:
committed by
Adrian Kumpf
parent
9cff83afb7
commit
9bb1b446ea
@@ -13,6 +13,7 @@ config :teslamate, TeslaMate.Repo,
|
||||
password: System.fetch_env!("DATABASE_PASS"),
|
||||
database: System.fetch_env!("DATABASE_NAME"),
|
||||
hostname: System.fetch_env!("DATABASE_HOST"),
|
||||
port: System.get_env("DATABASE_PORT", "5432"),
|
||||
pool_size: System.get_env("DATABASE_POOL_SIZE", "5") |> String.to_integer()
|
||||
|
||||
config :teslamate, TeslaMateWeb.Endpoint,
|
||||
|
||||
Reference in New Issue
Block a user