0

我正在尝试使用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,它确实存在。有关如何解决此问题的任何信息将非常感谢

4

2 回答 2

0

将 exrm 添加为项目的依赖项

defp deps do [{:exrm, "~> x.x.x"}] end

于 2016-08-19T05:22:13.677 回答
0

我认为问题在于您没有将其包含在本地 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-06-17T03:35:45.837 回答