gpt4 book ai didi

elixir - 在生产中部署 Phoenix 应用程序时出错

转载 作者:行者123 更新时间:2023-12-04 21:57:41 40 4
gpt4 key购买 nike

我试图在 VPS 中以生产模式启动 Phoenix 应用程序(在开发模式下可以),因此,在编译我的应用程序 Assets 后,我运行:

PORT=4001 MIX_ENV=prod mix phoenix.server

我得到:
** (Mix) Could not start application myapp: could not find application file: myapp.app

我该怎么办?

最佳答案

prod您需要显式编译应用程序的环境。它不会被自动编译 - 这是 build_embedded: true 的行为之一您的 mix.exs 中的选项.

运行 MIX_ENV=prod mix compile在开始之前应该解决所有问题。

关于elixir - 在生产中部署 Phoenix 应用程序时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33938881/

40 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com