mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
read port from the env to support rolling deploys
This commit is contained in:
parent
7c1f5c5095
commit
b67d47f72e
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ secret_key_base =
|
||||||
"""
|
"""
|
||||||
|
|
||||||
config :philomena, PhilomenaWeb.Endpoint,
|
config :philomena, PhilomenaWeb.Endpoint,
|
||||||
http: [ip: {127, 0, 0, 1}, port: String.to_integer(System.get_env("PORT") || "4000")],
|
http: [ip: {127, 0, 0, 1}, port: {:system, "PORT"}],
|
||||||
url: [host: System.get_env("APP_HOSTNAME"), scheme: "https", port: 443],
|
url: [host: System.get_env("APP_HOSTNAME"), scheme: "https", port: 443],
|
||||||
secret_key_base: secret_key_base,
|
secret_key_base: secret_key_base,
|
||||||
server: true
|
server: true
|
||||||
|
|
Loading…
Reference in a new issue