read port from the env to support rolling deploys

This commit is contained in:
byte[] 2020-04-07 00:56:03 -04:00
parent 7c1f5c5095
commit b67d47f72e

View file

@ -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