diff --git a/config/prod.exs b/config/prod.exs index 1480344d..177e532e 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -12,7 +12,7 @@ import Config config :philomena, PhilomenaWeb.Endpoint, cache_static_manifest: "priv/static/cache_manifest.json" # Do not print debug messages in production -config :logger, level: :warn +config :logger, level: :warning # ## SSL Support # diff --git a/config/runtime.exs b/config/runtime.exs index dd726029..9cd91ed5 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -130,7 +130,7 @@ if config_env() == :prod do {:ok, ip} = :inet.parse_address(System.get_env("APP_IP", "127.0.0.1") |> String.to_charlist()) config :philomena, PhilomenaWeb.Endpoint, - http: [ip: ip, port: {:system, "PORT"}], + http: [ip: ip, port: System.fetch_env!("PORT")], url: [host: System.fetch_env!("APP_HOSTNAME"), scheme: "https", port: 443], secret_key_base: System.fetch_env!("SECRET_KEY_BASE"), server: not is_nil(System.get_env("START_ENDPOINT"))