-->

how can I run rails server daemon?

2019-03-09 08:44发布

问题:

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?

回答1:

it's worth trying the following command

$ rails s -d


回答2:

It should be:

rails s -d

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