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,但这似乎没有解决它。
我缺少什么?
您需要指示mix将inetsOTP 应用程序包含到版本中。在你的mix.exs:
def application do
[
mod: {MyApp, []},
...
applications: [:logger, ..., :inets, ...]
]
end
Run Code Online (Sandbox Code Playgroud)
旁注:erlang-inets与问题无关。