Address elixir deprecations

This commit is contained in:
Liam 2024-03-04 11:30:01 -05:00
parent 55eac3c638
commit 94f6803cd1
2 changed files with 2 additions and 2 deletions

View file

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

View file

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