我的应用程序单独工作正常,但是,如果我尝试在伞设置中运行它,我会收到错误:
这是我做的:(在伞文件夹的根目录)
mix local.rebar
rm -rf deps
rm -rf _build
mix deps.get
iex -S mix phoenix.server
Erlang/OTP 20 [erts-9.2] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]
===> Compiling pooler
===> Compiling src/pooler_starter.erl failed
src/pooler_starter.erl:34: export_all flag enabled - all functions will be exported
** (Mix) Could not compile dependency :pooler, "/Users/samir/.mix/rebar3 bare compile --paths "/Users/samir/Documents/projects/elixir/_build/dev/lib/*/ebin"" command failed. You can recompile this dependency with "mix deps.compile pooler", update it with "mix deps.update pooler" or clean it with "mix deps.clean pooler"
虽然我可以在app文件夹本身运行命令iex -S mix phoenix.server
时启动它。
这是伞主应用程序的mix.exs
:
defmodule TrackwareProjects.Mixfile do
use Mix.Project
def project do
[apps_path: "apps",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
defp deps do
[]
end
end
伞主应用的config.exs
:
use Mix.Config
import_config "../apps/*/config/config.exs"
有什么想法吗?
修改
$mix deps.compile
===> Compiling re2
===> Compiling semver
===> Compiling pooler
===> Compiling src/pooler_starter.erl failed src/pooler_starter.erl:34: export_all flag enabled - all functions will be exported
** (Mix) Could not compile dependency :pooler, "/Users/samir/.mix/rebar3 bare compile --paths "/Users/samir/Documents/projects/elixir/_build/dev/lib/*/ebin"" command failed. You can recompile this dependency with "mix deps.compile pooler", update it with "mix deps.update pooler" or clean it with "mix deps.clean pooler"