0
0

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 3 years have passed since last update.

Railsが動いてくれない。

Posted at

rails newはなんとか動く。モデル作成その他が動かない。なんでや!

で、rails newした時によくよく見てみるとこんなんがある。

  • bin/rake: Spring inserted
  • bin/rails: Spring inserted

なんぞこれ。

調べてみると以前サーバーが起動しなかった時と同じ感じらしい。

$ ps ax | grep spring
11588 ?        Sl     0:00 spring server | anilova | started 1 hour ago
12708 pts/1    S+     0:00 grep --color=auto spring

11588が何故か動いてるのでこいつを消す。
一旦以下のコードで確認。

$spring status
Spring is running:

11588 spring server | anilova | started 1 hour ago
12283 [ruby] <defunct>
$spring status
Spring stopped.

これで11588は止まったはず。
もう一度確認。

$ spring status
Spring is not running.
$ ps -ef | grep spring
vagrant  12728 12631  0 05:53 pts/1    00:00:00 grep --color=auto spring

これで正常に戻った!

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?