我有一个用 elixir/phoenix 编写的简单网站。我今天做了一些更改,并想将其部署到生产中。
我推送了我的存储库,将其拉到生产服务器上并构建了一个版本:
MIX_ENV=prod mix release
它失败了......所以我再次运行它--verbosity=verbose
并且它失败了:
silent])===> Provider (relup) failed with: {error,
{rlx_prv_relup,
{relup_script_generation_error,
systools_relup,
{file_problem,
{"/home/herman/alive/rel/alive/lib/elixir-1.1.1/ebin/elixir.appup",
{error,
{open,
"/home/herman/alive/rel/alive/lib/elixir-1.1.1/ebin/elixir.appup",
enoent}}}}}}}
有谁知道如何解决这个问题?
当前版本 0.0.6 在 elixir 1.1.0 下运行,新版本 0.0.7 与 1.1.1 一起运行。
我的 mix.exs:
defmodule Alive.Mixfile do
use Mix.Project
def project do
[app: :alive,
version: "0.0.7",
elixir: "~> 1.0",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Configuration for the OTP application
#
# Type `mix help compile.app` for more information
def application do
[mod: {Alive, []},
applications: [
:phoenix,
:phoenix_html,
:cowboy,
:logger,
:phoenix_ecto,
:timex,
:mariaex]
]
end
# Specifies which paths to compile per environment
defp elixirc_paths(:test), do: ["lib", "web", "test/support"]
defp elixirc_paths(_), do: ["lib", "web"]
# Specifies your project dependencies
#
# Type `mix help deps` for examples and options
defp deps do
[{:phoenix, "~> 1.0.1"},
{:phoenix_ecto, "~> 1.1"},
{:mariaex, ">= 0.0.0"},
{:phoenix_html, "~> 2.1"},
{:phoenix_live_reload, "~> 1.0", only: :dev},
{:cowboy, "~> 1.0"},
{:timex, ">= 0.0.0"},
{:exrm, "~> 0.19.9"},
{:rebar3_hex, ">= 0.0.0"},
{:plug_forwarded_peer, "~> 0.0.2" }
]
end
end