2012-01-20 91 views
6

我试图运行Heroku控制台,但在控制台中,我收到消息“运行控制台连接到终端”但控制台无法启动。运行Heroku控制台不启动

在Heroku的日志,我得到的错误:

Error: no child processes attached. 

任何帮助吗?

+0

我遇到类似的问题;从我的Heroku日志输出: 2012-02-24T07:54:31 + 00:00的Heroku [run.1]:状态改变从创建到起始 2012-02-24T07:54:38 + 00:00应用程式[ run.1]:等待客户端 2012-02-24T07:54:38 + 00:00 app [run.1]:使用命令“rails console”启动进程 2012-02-24T07:54:39 + 00:00 Heroku的[运行。1]:状态从开始变为 2012-02-24T07:54:39 + 00:00 app [run.1]:错误:未定义方法'exitstatus'为零:NilClass 2012-02-24T07:54: 40 + 00:00 heroku [run.1]:进程退出状态为0 2012-02-24T07:54:40 + 00:00 heroku [run.1]:状态从up改为完成 –

+0

〜/ rails /新兵=> heroku run rails console 运行轨道控制台连接到终端... up,run.1 〜/ rails/recruits => –

回答

17

我刚刚有一个关于Heroku支持的线程,讲述了我的类似问题,这里是他们的回应,这对我有用。

So this is a bamboo app. You can either do

$ heroku console

which will tap into a running web dyno, or you can run a new console as a one-off process with:

$ heroku run bundle exec rails console

On cedar apps you'd also be able to do

$ heroku run console

which also starts a one-off process, because the console process type would be implied by the rails buildpack or declared in your Procfile. It amounts to the same as the previous line.

-1

做到这一点,然后尝试 在Procfile

网站:束EXEC unicorn_rails -p $ PORT -c配置/ unicorn.rb

在unicorn.rb

worker_processes 2 preload_app真正 timeout 30

@resque_pid = nil

befo re_fork do | server,worker | @resque_pid || =产卵( “束EXEC耙环境resque:工作队列= *”) 结束

after_fork做|服务器上,工人| 的ActiveRecord :: Base.establish_connection 结束

+0

独角兽在这里没有关系。这是否意味着另一个问题呢? –

0

我觉得这是你描述了同样的问题,它有一个公认的答案这似乎解决了发布该问题:-)

的家伙问题heroku run console returns 'Error connecting to process'

+0

它没有为我工作。这是另一个问题。 – Tony

+0

它对我来说也是一个不同的问题。它没有返回错误。 –

0

我有这个问题之前,其实我把我的代码的Heroku。

一旦我成功推送并启动了一切(捆绑,耙子等),控制台实际上工作。

+0

一切似乎都在我身上,我和Tony有同样的问题。 –

2

尝试

$ telnet rendezvous.heroku.com 5000 

测试网启用了访问到该端口。他们提到的their guide

+0

最终,这是heroku不负责帮助用户解决恶劣环境的问题。他们需要通过添加端口80或443解决方案来解决此问题。 – Barry

+0

我认为端口80不应该用于非HTTP通信。 – robermorales

+0

然后不要使用websockets。 :)有时候,你必须努力完成工作,才能回家。 – Barry

2

我正经历着同样的问题被过滤的端口的问题。
尝试

heroku run rails console

滑轨> = 3

编码愉快:)

+0

heroku运行控制台--app {your-app-name} – Taysky