 
         host = System.get_env("PHX_HOST") || "example.com"
 
-        config :#{app}, #{app_namespace}.Endpoint,
+        config :#{app}, #{web_namespace}.Endpoint,
           ...,
           url: [host: host, port: 443]
     """)


    app = Mix.Phoenix.otp_app()
    app_namespace = Mix.Phoenix.base()

    binding = [
      app_namespace: app_namespace,

    Add the following to the top of your config/runtime.exs:

        if System.get_env("PHX_SERVER") && System.get_env("RELEASE_NAME") do
          config :#{app}, #{web_namespace}.Endpoint, server: true
        end
    """)

