1

我的应用程序在尝试运行发布时遇到了这个致命问题:

** (MatchError) no match of right hand side value: {:error, {:inets, {'no such file or directory', 'inets.app'}}}

在我的本地主机上运行它时效果很好mix,但是 distillery 2 版本有这个问题。

erlang-inets从 erlang 解决方案 repo 安装了 ubuntu 包并做了另一个mix release,但这似乎并没有解决它。

我错过了什么?

4

1 回答 1

4

您需要指示mixinetsOTP 应用程序包含到版本中。在你的mix.exs

def application do
  [
    mod: {MyApp, []},
    ...
    applications: [:logger, ..., :inets, ...]
  ]
end

旁注erlang-inets与问题无关。

于 2019-03-11T11:29:24.300 回答