2
当我运行自定义在我的凤凰应用混合任务(我认为它甚至没有涉及到凤凰,但仍然)使用一些外部库(如https://github.com/knrz/geocoder)我得到在凤凰城的应用程序自定义搭配的任务
** (EXIT) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
:erlang.send(:geocoder_workers, {:"$gen_cast", {:cancel_waiting, #Reference<0.0.1.13074>}}, [:noconnect])
直到我想补充
Application.ensure_all_started(:geocoder)
到混音任务。所以我的问题是为什么我的所有依赖不会自动启动?是我谁做错了什么?
文档似乎已经感动:https://hexdocs.pm/phoenix/phoenix_mix_tasks.html#creating-our-own-mix-tasks –