2012-09-06 29 views
0

我试图运行加入这一行Procfile自带sunspot_solr宝石捆绑Solr的:即使我有正确的Procfile,为什么我会得到“Procfile声明类型 - >(无)”?

solr: bundle exec rake sunspot:solr:start 

Procfile拼写与一个小“F”,在我的Rails根目录中。

我还没有能够得到在我的procfile上提到的任何进程在heroku上运行。

我检查有关同一主题的问StackOverflow上的其他问题,所以不要点我有:

What is the reason for "Procfile declares types -> (none)" in Heroku?

Procfile declares types -> (none) in Heroku

+0

为了使这个问题成为一个完整的问题,其他人不必去寻找信息,您检查了哪些“其他问题”?是你的配置文件[命名'Procfile'与小写'f'](http://stackoverflow.com/questions/6346221/what-is-the-reason-for-procfile-declares-types-none-in- Heroku的)?您是否已经成功推送到heroku,然后使用能够正确运行其他事情的Procfile?是你的Procfile [在你的项目的基础上,在与requirements.txt相同的水平](http://stackoverflow.com/questions/11537501/procfile-declares-types-none-in-heroku)? – culix

+0

感谢culix,我已经更新了我的问题。 – vinayvinay

+0

谢谢!当我们有更多的信息时,它总是更容易帮助:) – culix

回答

0

通常的Heroku expects at least one process named web in your Procfile

Cedar堆栈上的所有语言和框架都声明了一个启动应用程序服务器的Web进程类型。

请问您的程序运行,如果你改变你的Procfile说这不是 -

web: bundle exec rake sunspot:solr:start

我不确定只要看到Procfile declares types -> (none)就意味着出现错误 - Heroku 'Getting Started with Rails' article也在开始时也有该输出;他们只是稍后改变他们的Procfile来代替运行web进程。

+0

我相信这是行不通的,因为你要求heroku开始solr作为web进程,所以它不会启动默认的web进程。所以我尝试了: '网络:捆绑exec rails服务器-p $端口 solr:RAILS_ENV =生产包exec rake太阳黑子:solr:start'。这也失败了。 – vinayvinay

+0

你的'web'和'solr'定义在单独的行吗?你之前已经声明过一个'web'过程吗?在声明'web'过程之后,heroku会说'Procfile现在声明类型 - >(无)'​​以外的内容吗? – culix

+0

web和solr分开。即使使用Procfile中提到的Web进程,heroku也不会检测到它。 – vinayvinay

相关问题