On my local machine, I am trying to run an application for rails and postpone work using Foreman. My Procfile looks like this:
web: bundle exec rails server -p $PORT worker: bundle exec rake jobs:work
When I start the wizard, only the first two web requests are executed. With the third request, the server freezes. The first request is displayed in the console, the second is not.
If I left the worker in my Procfile, the server is working fine and displays everything on the console. Also, when I start the rails server and work without Foreman, everything works fine.
So it seems like there is a problem with Foreman. I assume that the problem with Foreman does not output anything to the console after the first request, and therefore the buffer is not cleared. I searched for other posts and as a result added STDOUT.sync = true for my development.rb, but without any success.
Does anyone have a key? Thanks!
source share