2011-10-13 83 views
0

我使用的菌种宝石在Rails 3应用程序 - 这是Rails3中适应叉子https://github.com/rfc2822/spawn在Heroku菌种宝石 - “PGError:服务器关闭意外连接”

我的应用程序部署在Heroku上,和当我试图产卵我得到这个故障:

app[web.1]: ### ../controllers/messages_controller.rb:10:in `create_message': About to spawn 
app[web.1]: spawn> parent PID = 1 
app[web.1]: spawn> child PID = 49 
app[web.1]: ### ../controllers/messages_controller.rb:17:in `create_message': After spawn 
app[web.1]: Task Load (1.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = 80 LIMIT 1 
app[web.1]: PGError: server closed the connection unexpectedly 
app[web.1]: This probably means the server terminated abnormally 
app[web.1]: before or while processing the request. 

我在我的config/database.yml的这个选项,继产卵文档的建议:

reconnect: true 

是它连接到这个你觉得呢?

有点茫然......在我去调查之前,有没有人知道这是什么原因造成的? 欢呼声,最大

回答

0

我最终使用了girl_friday gem代替,这是一个简单的分叉队列系统。它对我很好。