【发布时间】:2017-05-02 17:07:02
【问题描述】:
我目前正在使用 Phoenix 应用程序,并且在修改我的 /config/* 文件时遇到了这个问题。
目前我的 Endpoint 的配置包含以下内容:
config :my_app, MyApp.Endpoint,
http: [port: 8080],
url: [host: "example.com", port: 80]
...
在阅读了the :http config 和the :url config 的两个文档后,我仍然不清楚:
每个 :port 配置的用途是什么?它们有何不同?
【问题讨论】:
标签: elixir phoenix-framework cowboy