C:\Sites\myapp>start "rails" rails s
This will open a new command window entitled "rails - rails s", running the WEBrick process, leaving the original command window available for use.
When you're ready to kill WEBrick, just close the "rails" command window. Brutal, but effective.
This did not work for me. The message in the new CMD window is that my rails command has no parameter. My original probelm is that rails s seems to start 2 ruby processes. Ctrl C only kills only one of them so starting the server again fails cos the network port is still in use! weird. Anyway I installed Thin and that works betterReplyDelete