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
是它連接到這個你覺得呢?
有點茫然......在我去調查之前,有沒有人知道這是什麼原因造成的? 歡呼聲,最大