How to stop a Daemon Server in Rails?

前端 未结 15 647
灰色年华
灰色年华 2020-12-12 09:52

I am running my rails application using the following

  $script/server -d webrick 

on my Ubuntu system , above command run the webrick s

15条回答
  •  无人及你
    2020-12-12 10:17

    You can start your server in the background by adding -d to your command. For instance:

    puma -d
    

    To stop it, just kill whatever process is running on port 3000:

    kill $(cat tmp/pids/server.pid)
    

提交回复
热议问题