【发布时间】:2017-09-24 10:24:15
【问题描述】:
当我在使用某些外部库(例如 https://github.com/knrz/geocoder)的 Phoenix 应用程序(我认为它甚至与 Phoenix 无关,但仍然)中运行自定义 Mix 任务时,我得到了
** (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)
到混合任务。所以我的问题是为什么我的所有依赖项都没有自动启动?是我做错了吗?
【问题讨论】: