首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >尝试使用edeliver释放包,但获得deps/exrm/mix.exs:没有这样的文件或目录

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

Stack Overflow用户
提问于 2016-06-17 09:11:40
回答 2查看 271关注 0票数 0

我正在尝试使用edeliver将我的包部署到我的服务器上,

几乎一切都很顺利,然后我得到了这个错误

代码语言:javascript
复制
-----> 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,它确实存在。任何有关如何解决此问题的信息都将非常感谢

EN

回答 2

Stack Overflow用户

发布于 2016-06-17 11:35:46

我认为问题在于您没有将其包含在本地mix.exs的应用程序中。确保你有这样的东西:

代码语言:javascript
复制
  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

这可以解决这个问题。

票数 0
EN

Stack Overflow用户

发布于 2016-08-19 13:22:14

将exrm作为依赖项添加到项目中

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37871633

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档