Rails + foreman + worker hangs server

偶尔善良 提交于 2019-12-04 04:31:29
Vighnesh

UPDATE: Tracked and resolved here:

https://github.com/ddollar/foreman/issues/244

TL;DR: Install the gem, don't use foreman.pkg


I'm facing the same problem.

Here's a link to the question I've asked on stackoverflow. @smek, if you found an answer, please reply!

I had a similar problem when trying to implement and test DJ + Foreman in my local dev environment. I intended to deploy to Heroku and was using the following article as a guide. If you are also deploying to Heroku, I recommend installing Heroku Toolbelt, which includes Foreman. In my case I already had Heroku Toolbelt installed, so I simply reinstalled it.

most of the times someone left a debugger/pry statement in the code or you put a breakpoint in somewhere.

if you can't find anything than you can use system tools like lsof or gdb to find out what your ruby process is doing at the moment. that might help finding the problem.

I just started using Foreman about an hour ago, and I was having some issues with both my rake tasks and rails server hanging when being run by Foreman. When I removed the pry gem from my Gemfile it worked, but that wasn't acceptable since I use pry in development.

Then I updated to foreman version 0.49.0 (which was released about 10 minutes ago) and the problem was fixed. Too bad I didn't start working on this task an hour later, because then I would have gotten 0.49.0 to start with and not had to mess around for an hour :)

You should try upgrading Foreman and see if it fixes your problem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!