LoginSignup
0
0

More than 5 years have passed since last update.

Railsでエラーが出た時 初心者

Posted at

Railsでエラーが出た時は、再起動
基本的には、コードを保存するだけで更新されるが
そうはいかない時がある。

コードを変更しても前回の出力と変わらない場合は、サーバーの再起動で解決する

サーバーの再起動

railsのサーバー(puma)のprocessidを調べる

$ ps ax | grep puma

停止

$ kill -2 {processid}

(デーモン化で)起動

$ rails s -b 192.168.33.10 -d
0
0
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
0
0