环境
- 凤凰版:1.3.4
- 外版本:2.1
- edeliver版本:edeliver v1.4.5
- 灵药版本:1.6.3
- 构建工具和版本(distillery):distillery v2.0.10
- 操作系统(在构建/部署主机上):Ubuntu 16.04.4 x64
- 您是否使用伞式项目(是|否):是
当前行为
我正在部署一个具有以下结构的伞式项目:
- apps/
-- app_web <--- Phoenix app
-- app <--- Ecto app
运行时mix edeliver start production
出现错误,但应用程序成功启动:
-----> starting production servers
production node:
user : user
host : server-1
path : /home/user/apps/app/app_release
response: ▸ Received 'pang' from app@127.0.0.1!
▸ Possible reasons for this include:
▸ - The cookie is mismatched between us and the target node
▸ - We cannot establish a remote connection to the node
▸ Received 'pang' from app@127.0.0.1!
▸ Possible reasons for this include:
▸ - The cookie is mismatched between us and the target node
▸ - We cannot establish a remote connection to the node
▸ Given the following expression: Elixir.Edeliver.run_command([:monitor_startup_progress, "app", :compact])
▸ The remote call failed with:
▸ ** (exit) :undef
▸ Edeliver.run_command([:monitor_startup_progress, "app", :compact])
▸ (stdlib) erl_eval.erl:680: :erl_eval.do_apply/6
▸ (elixir) src/elixir.erl:265: :elixir.eval_forms/4
▸ (elixir) lib/code.ex:590: Code.eval_quoted/3
▸ (kernel) rpc.erl:197: anonymous fn/5 in :rpc.handle_call_call/6
START DONE!
此外,在尝试获取生产中的迁移状态时出现以下错误mix edeliver show migrations on production
:
-----> migrations in production servers
production node:
user : app
host : server-1
path : /home/user/apps/app/app_release
response: ▸ Given the following expression: Elixir.Edeliver.run_command([:list_pending_migrations, "app", ""])
▸ The remote call failed with:
▸ ** (exit) :undef
▸ Edeliver.run_command([:list_pending_migrations, "app", ""])
▸ (stdlib) erl_eval.erl:680: :erl_eval.do_apply/6
▸ (elixir) src/elixir.erl:265: :elixir.eval_forms/4
▸ (elixir) lib/code.ex:590: Code.eval_quoted/3
▸ (kernel) rpc.erl:197: anonymous fn/5 in :rpc.handle_call_call/6
预期行为
我希望应用程序在发生错误时不会启动,并在调用命令时显示迁移状态。