LoginSignup
14
16

More than 3 years have passed since last update.

rails s バックグラウンドで起動と停止

Posted at

バッググラウンドでサーバを起動する方法

$ rails s -d
  • オプションで-dを付けてあげよう!
=> Booting Puma
=> Rails 5.2.3 application starting in development 
=> Run `rails server -h` for more startup options
  • こんな感じになればOK!

バッググラウンドで起動したサーバを停止する方法

$ cat tmp/pids/server.pid

18248uchidanoMBP:Myapp uchida$ 
  • 18248切ってあげれば良い!
$ kill -9 18248

エラーがでなければOKだ!

14
16
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
14
16