This commit is contained in:
Matthew Ryan Dillon 2020-12-21 21:17:09 -07:00
parent 7aa0059c96
commit 1b7bb7859d

View file

@ -9,8 +9,15 @@ use Mix.Config
# manifest is generated by the `mix phx.digest` task, # manifest is generated by the `mix phx.digest` task,
# which you should run after static files are built and # which you should run after static files are built and
# before starting your production server. # before starting your production server.
host =
System.get_env("HOSTNAME") ||
raise """
environment variable HOSTNAME is missing.
"""
config :planner, PlannerWeb.Endpoint, config :planner, PlannerWeb.Endpoint,
url: [host: "planner.thermokar.st", port: 5000], url: [host: host, port: 5000],
cache_static_manifest: "priv/static/cache_manifest.json" cache_static_manifest: "priv/static/cache_manifest.json"
# Do not print debug messages in production # Do not print debug messages in production