【问题标题】:Distillery release fails: Could not locate code path for m{elixir-1.7.2","./lib/elixir-1.7.2Distillery 发布失败:找不到 m{elixir-1.7.2","./lib/elixir-1.7.2 的代码路径
【发布时间】:2020-01-15 14:55:51
【问题描述】:

在开始使用现有应用程序之后,我正在尝试在 Gigalixir 上部署我的应用程序。

我已将 [{:distillery, "~> 2.1"}] 添加到我的 mix.deps

为生产构建版本

SECRET_KEY_BASE="$(mix phx.gen.secret)" 
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/rumbl_dev"
MIX_ENV=prod
mix distillery.release --env=prod

然后我运行_build/prod/rel/rumbl/bin/rumbl start,但失败了

Could not locate code path for m{elixir-1.7.2","./lib/elixir-1.7.2!

有什么想法吗?

【问题讨论】:

    标签: erlang elixir phoenix-framework distillery


    【解决方案1】:

    您应该比较混合文件中的 elixir 版本和服务器上安装的版本。

    【讨论】:

    • 对于任何有同样问题的人,def project 中的 :app_name/mix.exs,elixir 的定义与 Elixir 构建包中的不同
    • @EricProstko [和未来的访问者]:mix.exs 中的project 部分指定minimal 而不是exact i> 要求elixir 版本。
    猜你喜欢
    • 2016-04-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-06-21
    • 2012-07-21
    • 2017-01-20
    相关资源
    最近更新 更多