2016年5月20日金曜日

bundle exec rails sが起動しなかった

bundle exec rails sが突然起動しなくなったので調べました。

環境は以下です。
Mac 10.11.4
ruby 2.1.3
rails 4.1.6

bundle exec rails sすると微動だにしなくCtrl+Cをやっても返ってこない状態になりました。
プロセスは起動していたので、killして止めることはできました。

調べたところ、springがおかしいかもということで、
springを停止してみました。
$ bundle exec bin/spring status
Spring is running:

 3134 spring server | kidsline | started 15 hours ago  
 7517 spring app    | kidsline | started 8 secs ago | development mode
 
$ bundle exec bin/spring stop
Spring stopped.

$ bundle exec bin/spring status
Spring is not running.

springを止めた上でstartすると、無事に起動しました。
$ bundle exec rails s
Resque::Helpers will be gone with no replacement in Resque 2.0.0.
=> Booting WEBrick
=> Rails 4.1.6 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)
=> Ctrl-C to shutdown server
[2016-05-18 11:32:31] INFO  WEBrick 1.3.1
[2016-05-18 11:32:31] INFO  ruby 2.1.3 (2014-09-19) [x86_64-darwin14.0]
[2016-05-18 11:32:31] INFO  WEBrick::HTTPServer#start: pid=12814 port=3000

参考URL
http://qiita.com/rojiuratech/items/759c2d62907a2a36e340

0 件のコメント:

コメントを投稿