This is just a brief reminder to myself of how to get rid of an already running rails server (for when it happens).
All you need to do in the console, within your application subdirectory is type:
ps aux | grep rails
After which you should see some output like this:
Daren 89314 0.2 2.0 2551940 82732 s003 R+ 2:38PM 2:38.93 /Users/Daren/.rvm/rubies/ruby-1.9.2-p180/bin/ruby script/rails s Daren 2881 0.1 0.1 2524112 3296 s005 R+ Wed06PM 2:11.62 /Users/Daren/.rvm/rubies/ruby-1.9.2-p180/bin/ruby script/rails c
The second line is my running server that I need to shutdown, which can be done as follows:
kill -9 <pid>
In my case, the pid is 89314, so I use the following:
kill -9 2881
You can check if the server is down, by again typing in:
ps aux | grep rails
In my case, I would see something like this:
Daren 2881 0.1 0.1 2524112 3296 s005 R+ Wed06PM 2:11.62 /Users/Daren/.rvm/rubies/ruby-1.9.2-p180/bin/ruby script/rails c
i.e the rails server process has been killed!