Here is what my Procfile looks like:
web: bundle exec rails server thin -p $PORT -e $RACK_ENV worker: bundle exec rake jobs:work
I intend to add a workflow because I want to run some background jobs. I follow these instructions
Here is what I noticed:
- No problems arise if the worker starts separately.
- When I save the second line in the Procfile file and change nothing, the rails server serves a couple of requests and freezes after that
- As mentioned here , I added
STDOUT.sync = true
to config / environment / development.rb and confirmed the same thing in the rails console, Doesn't work. - Tailed log / development.log and compared it with the materials that the wizard displayed in the shell, and noticed that both correspond to several requests, and then the wizard stopped printing the material in the shell - the next request then hung
- I updated the wizard using foreman.pkg, as mentioned here, and confirmed the same with [6]
- It was mentioned here that this may be caused due to a rejection of the debug instruction. I don't use a debugger and I don't have a pry gem or ruby ββdebug gem in my Gemfile.lock
- I find the symptoms are similar to this unanswered question
Please, help!
[6]:
which foreman /usr/bin/foreman ls -lah /usr/bin/foreman
source share