Running Webrick server in background?

前端 未结 4 874
故里飘歌
故里飘歌 2021-02-05 15:00
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         


        
4条回答
  •  长发绾君心
    2021-02-05 15:39

    The mongrel gem can do this easy.

    gem install mongrel
    

    Then you should be able to use

    mongrel_rails start -d
    

    -d for daemon mode.

提交回复
热议问题