"PGError: server closed the connection unexpectedly"上的生成宝石



我在rails3应用程序中使用Spawn gem -它是在https://github.com/rfc2822/spawn

我的应用程序部署在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.

我在我的配置/数据库中有这个选项。Yml,按照spawn文档的建议:

reconnect: true

你认为这和这个有关系吗?

我有点不知所措……在我调查之前,有人知道是什么引起的吗?欢呼,马克斯

我最终使用了girl_friday gem,这是一个简单的分叉队列系统。

最新更新