我正在尝试使用edeliver将我的包部署到我的服务器上,
几乎一切都很顺利,然后我得到了这个错误
-----> Authorizing hosts
-----> Ensuring hosts are ready to accept git pushes
-----> Pushing new commits with git to: xxx@xxx
-----> Resetting remote hosts to ac1bb1a41f8e7c03b7f4bcbf44fa3b0ab866fcfd
-----> Cleaning generated files from last build
-----> Fetching / Updating dependencies
-----> Compiling sources
-----> Detecting exrm version
cat: deps/exrm/mix.exs: No such file or directory
Failed to detect exrm version.
Please set EXRM_VERSION_MAJOR, EXRM_VERSION_MINOR and EXRM_VERSION_PATCH
in the console or the config file.
Detected '' as major,
'' as minor
and '' as patch version.我运行过cat deps/exrm/mix.exs,它确实存在。任何有关如何解决此问题的信息都将非常感谢
发布于 2016-06-17 11:35:46
我认为问题在于您没有将其包含在本地mix.exs的应用程序中。确保你有这样的东西:
def project do
[app: :xxxxxxx,
version: "0.0.2",
elixir: "~> 1.0",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
aliases: aliases,
deps: deps]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[mod: {Codepaths, []},
applications: [:phoenix, :cowboy, :logger, :gettext,
:phoenix_ecto, :postgrex, :edeliver, :ja_serializer, :con_cache]]
end这可以解决这个问题。
发布于 2016-08-19 13:22:14
将exrm作为依赖项添加到项目中
defp deps do [{:exrm, "~> x.x.x"}] end
https://stackoverflow.com/questions/37871633
复制相似问题