2017-01-25 23 views
0

我嘗試使用quantum作爲Phoenix應用程序的cronjob工具。它在我的開發系統中解決了一個問題。但我無法在生產中運行。 ./node_modules/brunch/bin/brunch b -p && MIX_ENV=prod mix do phoenix.digest, release --env=prod --upgrade總是與這個錯誤結束:量子結果在未定義的應用程序中:[stdlib,kernel]

Generated abc app 
==> Assembling release.. 
==> Building release abc:1.2.53 using environment prod 
==> Including ERTS 8.2 from /usr/lib/erlang/erts-8.2 
==> Failed to build release: 

    Undefined applications: [stdlib,kernel] 
  • 發展:MACOS 10.12.2。 Erlang 19. Elixir 1.4.0
  • 製作:Debian Linux。 Erlang 19. Elixir 1.4.0

我正在開發機器上的目標和開發上建設生產。當我刪除mix.exs中的量子部件時,它可以工作。

的設置:

mix.exs

def application do 
    [mod: {Abc, []}, 
    applications: [:phoenix, 
        :phoenix_pubsub, 
        :phoenix_html, 
        :cowboy, 
        :logger, 
        :gettext, 
        :phoenix_ecto, 
        :ex_machina, 
        :phoenix_html_simplified_helpers, 
        :bamboo, 
        :bamboo_smtp, 
        :mariaex, 
        :httpoison, 
        :slugger, 
        :timex_ecto, 
        :word_smith, 
        :arc, 
        :arc_ecto, 
        :quantum]] 
end 

defp deps do 
    [{:ecto, "~> 2.0.1", override: true}, 
    {:bamboo, "~> 0.6"}, 
    {:bamboo_smtp, "~> 1.1.0"}, 
    {:phoenix, "~> 1.2.0"}, 
    {:phoenix_ecto, "~> 3.0.0-rc"}, 
    {:phoenix_html, "~> 2.8"}, 
    {:phoenix_live_reload, "~> 1.0", only: :dev}, 
    {:gettext, "~> 0.12.1"}, 
    [...] 
    {:distillery, "~> 0.10"}, 
    {:quantum, ">= 1.8.1"}] 
end 

我怎樣才能解決這個問題?

+0

你有本地和遠程二郎什麼版本? – mudasobwa

+0

19開發和生產。 – wintermeyer

+0

無法在拱門上構建與目標不同的版本:「[構建主機必須與生產/登臺主機類似。](https://github.com/boldpoker/edeliver/#installation)」-you可能需要重新考慮部署策略。 – mudasobwa

回答

相關問題