Приложение запускается с ошибкой и не показывает состояние миграции
Среда
- Феникс версия: 1.3.4
- Экто версия: 2.1
- Версия Edeliver: edeliver v1.4.5
- Версия эликсира: 1.6.3
- Инструмент для сборки и версия (винокурня): винокурня v2.0.10
- Операционная система (на хостах build / deploy): 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
Ожидаемое поведение
Я ожидаю, что приложение не запустится при возникновении ошибки и покажет статус миграции при вызове команды.