foreman icon indicating copy to clipboard operation
foreman copied to clipboard

After the foreman finishes, the ruby process continues to exist

Open afuno opened this issue 4 years ago • 2 comments

Ruby 2.7.2, Rails 6.1.0, Foreman 0.87.2


I have two Rails applications. One application depends on another through an API.

I run both applications with two commands in different console windows:

foreman start -f Procfile.dev

Inside these two Procfiles:

web: bundle exec rails s -p 3000
webpacker: ./bin/webpack-dev-server
web: bundle exec rails s -p 3010
webpacker: ./bin/webpack-dev-server
worker: redis-server
worker: bundle exec sidekiq -C config/sidekiq.yml

The application terminates using the keyboard shortcut Control + C.

After that, through the monitoring app on macOS, I continue to see two ruby processes. These processes absolutely appear after the launch of Rails applications. And these processes together load the CPU at 100%.

These two processes have to be completed separately. For some reason, this command is suitable for this:

spring stop

afuno avatar Dec 25 '20 11:12 afuno

I‘m also wondering why the spring doesn't stop automatically as expected.

yangjindong avatar Jul 31 '22 02:07 yangjindong

Maybe due to https://github.com/ddollar/foreman/issues/779? That issue has been addressed in overman, a foreman fork, see https://github.com/ddollar/foreman/pull/780#issuecomment-1294980165

dentarg avatar Oct 28 '22 16:10 dentarg