对elixir';s mix.exs
我对mix.exs中的对elixir';s mix.exs,elixir,Elixir,我对mix.exs中的编译路径设置感到困惑。设置如下: defmodule MyProject.Mixfile do use Mix.Project def project do [ app: :my_project, version: "0.0.1", elixir: "~> 0.12.0", deps: deps, escript_main_module: MyProject, compile_path: "ebing/ew/ebin"] end # Confi
编译路径设置感到困惑。设置如下:
defmodule MyProject.Mixfile do
use Mix.Project
def project do
[ app: :my_project,
version: "0.0.1",
elixir: "~> 0.12.0",
deps: deps,
escript_main_module: MyProject,
compile_path: "ebing/ew/ebin"]
end
# Configuration for the OTP application
def application do
[]
end
# Returns the list of dependencies in the format:
# { :foobar, git: "https://github.com/elixir-lang/foobar.git", tag: "0.1" }
#
# To specify particular versions, regardless of the tag, do:
# { :barbat, "~> 0.1", github: "elixir-lang/barbat" }
defp deps do
[]
end
end
使用compile_路径并在运行mix compile
后,我仍然找不到目录ebing/we/ebin。我也试着先创建目录,但它仍然是空的。我还尝试了mixcompile--force
,它仍然构建在默认目录中
有人能帮助您理解编译路径
设置吗?不再支持:编译路径
选项。Mix将始终编译为\u build
这是不推荐使用的原因吗?我希望/需要能够指定要构建到的位置。