34

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?

2 Answers2

89

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
rubish
  • 10,887
  • 3
  • 43
  • 57
26

it's worth trying the following command

$ rails s -d
thiagoh
  • 7,098
  • 8
  • 51
  • 77