应用程序从错误开始,未显示迁移状态

时间:2018-10-20 14:07:11

标签: elixir phoenix-framework distillery edeliver

环境

  • 凤凰版:1.3.4
  • Ecto版本:2.1
  • Edeliver版本:edeliver v1.4.5
  • Elixir版本:1.6.3
  • 构建工具和版本(蒸馏):酒厂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

预期行为

我希望出现错误时应用程序不会启动,并在调用命令时显示迁移状态。

0 个答案:

没有答案