I'm new to Ruby and Rails. I start the WEBrick Server from scripts/server (via ./scripts/server from the directory created by rails) on Debian. The Server starts and is reachable, but if I press CTRL + C then appears
ERROR SystemExit: exit
[rails dir]/vendor/rails/railties/lib/commands/server.rb:106:in `exit'
and the Server won't stop. What goes wrong?
*nix
First step, lookup the process ID (PID) of rails server
; you'll need the port it's running on.
Second step, manually kill the process using the PID obtained in step one.
sudo lsof -i tcp:<PORT> # e.g. 3000
kill -9 <PID> # e.g. 14319
For any latecomers, Rails 2.3.8 doesn't like Rack 1.2.1
Add gem 'rack', '1.1.0'
to your gemfile, run bundle update rack
and your server should exit correctly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With