在Capistrano部署Spree Rails应用程序时出现procfile错误
问题描述:
我已经解决了很多问题,但是正在为此付出努力。在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
答
据狂欢的文档,它看起来像你需要生成一个Procfile
部署之前(这是由Foreman使用)在您的应用程序。
该指南显示了默认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
,您可以运行从丢失的配置文件转移到更多的问题中,他们的部署服务可能会自动为您处理所有这些问题。
实际上应用程序根目录中是否存在'Procfile'?检查并确保它也签入您的SCM。 – Eugene 2013-03-23 18:17:25