我如何确保 Distillery 在发行版中包含 Erlang inets?

cjm*_*671 2 elixir-mix elixir distillery

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

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

在我的本地主机上运行它时它工作正常mix,但是 distillery 2 版本有这个问题。

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

我缺少什么?

Ale*_*kin 5

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

def application do
  [
    mod: {MyApp, []},
    ...
    applications: [:logger, ..., :inets, ...]
  ]
end
Run Code Online (Sandbox Code Playgroud)

旁注erlang-inets与问题无关。