config/dev.exs
config :app, AppWeb.Endpoint,
+ url: [host: "dev.appdomain.com", port: 4000],
これでhostを指定することができます。
AppWeb.Endpoint.config(:url)[:host]
で、dev.appdomain.com
を返します。
More than 3 years have passed since last update.
config :app, AppWeb.Endpoint,
+ url: [host: "dev.appdomain.com", port: 4000],
これでhostを指定することができます。
AppWeb.Endpoint.config(:url)[:host]
で、dev.appdomain.com
を返します。
Register as a new user and use Qiita more conveniently