For some reason, when I type “rails s”, sometimes I can’t shut the server down using CTRL-C. It’s using Web brick, the default.
Sometimes it works for hours. Other times it doesn’t work at all and I must constantly kill the process if I want to shut down the server.
Is this a known problem? How can I fix it?
If you need to know more info, please just ask and I’ll tell you what I can. Because I don’t know what is causing it, I am at a loss as to what info to provide you with.
EDIT: I am adding a git repository:
gem 'rails-dev-boost', :git => 'git://github.com/thedarkone/rails-dev-boost.git', :require => 'rails_development_boost'
But to be fair, I’ve not had this problem with this line enabled… and I’ve also had this problem when this gem line didn’t exist.
The way I solved this problem was to do the following:
To stop the
rails serverwhile it’s running, press:You will get control back to
bash. Then type (without the $):And this will go back into the process, and then quit out of
Rails sproperly.It’s a little annoying, but this sure beats killing the process manually. It’s not too bad and it’s the best I could figure out.