尝试使用edeliver发布一个包,但得到deps / exrm / mix.exs:没有这样的文件或目录

时间:2016-06-17 01:11:40

标签: elixir phoenix-framework edeliver

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

2 个答案:

答案 0 :(得分: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

这可以解决问题。

答案 1 :(得分:0)

将exrm添加为项目的依赖项

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