繁体   English   中英

尝试使用edeliver释放软件包但得到deps / exrm / mix.exs:没有这样的文件或目录

[英]Trying to use edeliver to release a package but getting deps/exrm/mix.exs: No such file or directory

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

我认为问题在于您尚未将其包含在本地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

这样可以解决问题。

将exrm添加为项目的依赖项

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM