1. otoan

    Posted

    otoan
Changes in title
+rails console が立ち上がらない時
Changes in tags
Changes in body
Source | HTML | Preview
@@ -0,0 +1,41 @@
+
+```
+rails c
+```
+
+を打つも、何も反応がない。
+
+Ctrl+cでキャンセルすると
+
+```
+^C/usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/spring-1.3.6/lib/spring/client/run.rb:98:in `gets': Interrupt
+ from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/spring-1.3.6/lib/spring/client/run.rb:98:in `verify_server_version'
+ from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/spring-1.3.6/lib/spring/client/run.rb:56:in `run'
+ from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/spring-1.3.6/lib/spring/client/run.rb:37:in `warm_run'
+ from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/spring-1.3.6/lib/spring/client/run.rb:26:in `call'
+ from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/spring-1.3.6/lib/spring/client/command.rb:7:in `call'
+ from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/spring-1.3.6/lib/spring/client/rails.rb:24:in `call'
+ from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/spring-1.3.6/lib/spring/client/command.rb:7:in `call'
+ from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/spring-1.3.6/lib/spring/client.rb:26:in `run'
+ from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/spring-1.3.6/bin/spring:48:in `<top (required)>'
+ from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/spring-1.3.6/lib/spring/binstub.rb:11:in `load'
+ from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/spring-1.3.6/lib/spring/binstub.rb:11:in `<top (required)>'
+ from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
+ from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
+```
+
+
+
+
+
+
+
+http://cobachie.hatenablog.com/entry/2015/06/30/154736
+
+という記事を見つけたので、
+
+```
+bundle exec spring stop
+```
+
+すると、動くようになりました。