0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

WEBrickサーバが立ち上がらない時

Last updated at Posted at 2016-10-18

server.pidの中身を削除してもkillコマンドを要求された時

実は結構簡単に解決できます。
ただの偶然かもRails側のバグかも詳しく調べていませんが、
servewr.pid内のプロセスの番号を削除した後WEBrickサーバを起動すると
自動的にRailsがserver.pidがもう一度削除され作り直される。

つまり

tmp/pids/server.pidの中身を削除しても
Rails側が削除してくれない時は
自分でserver.pidファイルを削除してみましょう。
そうしてまたWEBrickサーバを起動すると
server.pidが作り直されるはずです。

WEBrick側のプロセスが終わらなかった人の参考になれば嬉しいです。

0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?