我如何确保酒厂在发布中包含 Erlang inets?

How can I make sure distillery includes Erlang inets in the release?

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

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

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

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

我错过了什么?

您需要指示 mixinets OTP 应用程序包含到发布中。在你的 mix.exs:

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

旁注erlang-inets与问题无关。