2013-03-23 146 views
1

我已經解決了很多問題,但是正在爲此付出努力。在Capistrano部署Spree Rails應用程序時出現procfile錯誤

部署環境: 的Ubuntu 12.10 RVM 21年1月18日(穩定) 紅寶石1.9.3p392

收到此錯誤與

cap deploy:cold 

錯誤:

* 2013-03-23 18:01:27 executing `deploy:start' 
    triggering before callbacks for `deploy:start' 
    * 2013-03-23 18:01:27 executing `foreman:export' 
    * executing "cd /home/gwuix2/picurwebaruhaz/current && bundle exec foreman export bluepill /data/picurwebaruhaz/shared/config" 
    servers: ["198.211.117.84"] 
    [198.211.117.84] executing command 
** [out :: 198.211.117.84] ERROR: Procfile does not exist. 
** [out :: 198.211.117.84] 
    command finished in 1430ms 

我的部署。 rb: https://gist.github.com/gwuix2/5228473

的Gemfile:https://gist.github.com/gwuix2/5228488

+0

實際上應用程序根目錄中是否存在'Procfile'?檢查並確保它也簽入您的SCM。 – Eugene 2013-03-23 18:17:25

回答

1

據狂歡的文檔,它看起來像你需要生成一個Procfile部署之前(這是由Foreman使用)在您的應用程序。

Spree guide to Application Processes

該指南顯示了默認Procfile的內容,你可能能夠獲得通過。大禮包也有一個deployment service可以照顧生成幾件事情對你來說,包括Procfile的:

Every server will get some basic configuration, such as Rails Environment environment variable, placeholder directories for your Spree application, automatically generated database.yml and Procfile files, and more.

所以這可能是值得探討的,因爲即使你能夠手動生成Procfile,您可以運行從丟失的配置文件轉移到更多的問題中,他們的部署服務可能會自動爲您處理所有這些問題。

相關問題