我该如何运行rails服务器守护进程?

时间:2021-06-20 21:16:04

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

我是rails world的新手,需要在守护进程模式下运行我的rails测试服务器。

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

我注意到有一个-d标志,但它不适合我..

rails -s -d 

shouldn't it be like this?

不应该这样吗?

2 个解决方案

#1


17  

it's worth trying the following command

值得尝试以下命令

$ rails s -d

#2


72  

It should be:

它应该是:

rails s -d

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

#1


17  

it's worth trying the following command

值得尝试以下命令

$ rails s -d

#2


72  

It should be:

它应该是:

rails s -d

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