当我尝试使用 Distillery 升级正在运行的 Phoenix 应用程序时,构建失败并显示以下消息:
Generated teamgenik app
==> Assembling release..
==> Building release my_app:0.10.7 using environment prod
==> Generated .appup for artificery 0.2.6 -> 0.4.1
==> Generated .appup for db_connection 2.0.3 -> 2.0.6
==> Generated .appup for decimal 1.6.0 -> 1.7.0
==> Generated .appup for ecto 3.0.6 -> 3.0.8
==> Generated .appup for ecto_sql 3.0.4 -> 3.0.0
==> Generated .appup for phoenix 1.4.0 -> 1.4.3
==> Generated .appup for phoenix_html 2.13.0 -> 2.13.2
==> Generated .appup for phoenix_pubsub 1.1.1 -> 1.1.2
==> Generated .appup for plug 1.7.1 -> 1.7.2
==> Generated .appup for plug_cowboy 2.0.1 -> 2.0.2
==> Generated .appup for teamgenik 0.10.6 -> 0.10.7
==> Generated .appup for telemetry 0.3.0 -> 0.2.0
==> Release failed with multiple errors:
Multiply defined module: 'Elixir.Telemetry'
我运行这个应用程序几个月,我已经成功升级了好几次。这一次,我想将 Phoenix 的版本从 1.4.0 提升到 1.4.3。
我在 Elixir 论坛上阅读了这篇文章:
我试过mix deps.clean --all
和mix release.clean
. 有什么建议或建议吗?
更新
我注意到一个奇怪的现象。当我在 上执行bin/my_app upgrade 0.10.7
时RELEASE_ROOT_DIR
,我收到此错误消息(注意双引号和它们之间的逗号):
Could not locate code path for release-my_app","0.10.6!