Elixir/Phoenix:服务器在生产中出现eafnosupport故障
我有一个Phoenix Web应用程序,它在开发模式下启动良好(Elixir/Phoenix:服务器在生产中出现eafnosupport故障,elixir,phoenix-framework,Elixir,Phoenix Framework,我有一个Phoenix Web应用程序,它在开发模式下启动良好(ENV=dev mix phx.server) 但在生产模式中失败: ENV=prod mix phx.server=> [error]无法在:Ranch_tcp:listen([{:cacerts,:…},{:key,:…},{:cert,:…},:inet6,{:port,4000}])中启动Ranch listener HermesWeb.Endpoint.HTTP,原因是:eafnosupport(协议族不支持地址族) 端
ENV=dev mix phx.server
)
但在生产模式中失败:
ENV=prod mix phx.server
=>
[error]无法在:Ranch_tcp:listen([{:cacerts,:…},{:key,:…},{:cert,:…},:inet6,{:port,4000}])中启动Ranch listener HermesWeb.Endpoint.HTTP,原因是:eafnosupport(协议族不支持地址族)
端点配置a基本相同:
dev.exs:
config :hermes, HermesWeb.Endpoint,
http: [port: 4000],
url: [scheme: "https", host: "myhost", path: "/hermes/4000", port: 443],
debug_errors: true,
code_reloader: true,
check_origin: false,
watchers: [...]
prod.exs:
config :hermes, HermesWeb.Endpoint,
http: [port: 4000],
url: [scheme: "https", host: "myhost", path: "/hermes/4000", port: 443],
cache_static_manifest: "priv/static/cache_manifest.json"
此错误是由inet6引起的吗
我试过了
http:[:inet,端口:4000],…
这也不行
如果您能提供任何帮助,我们将不胜感激因为您遇到了同样的问题。你发现什么了吗?