how can I run rails server daemon?

user1619828 picture user1619828 · Feb 19, 2013 · Viewed 19.4k times · Source

I am new at rails world and need to run my rails test server in daemon mode..

I've noticed that there is a a -d flag but its not working for me..

rails -s -d 

shouldn't it be like this?

Answer

rubish picture rubish · Feb 19, 2013

It should be:

rails server --daemon

# to kill the server
kill `cat tmp/pids/server.pid`

# to tail development logs for debugging
tail -f log/development.log