Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running Webrick server in background?

MBPro:shovell myname$ ruby script/server
=> Booting WEBrick
=> Rails 2.3.8 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2010-08-01 15:28:35] INFO  WEBrick 1.3.1
[2010-08-01 15:28:35] INFO  ruby 1.9.1 (2010-07-02) [i386-darwin10.4.0]
[2010-08-01 15:28:35] INFO  WEBrick::HTTPServer#start: pid=36349 port=3000

After this command, I have to keep the terminal open, can't even get out using Cmd+z. Can't I run it as a background service?

Thanks

like image 440
eozzy Avatar asked Aug 01 '10 10:08

eozzy


1 Answers

The Output is already giving you the answer:

=> Call with -d to detach
like image 119
jigfox Avatar answered Oct 25 '22 23:10

jigfox