railsã³ãã³ããåºã¾ã£ããã§springãstopãããåãããã«ãªã£ã
$spring stop
Spring stopped.
ç°å¢ï¼Rails4.2.6
spring
ã¯Railsã¢ããªã±ã¼ã·ã§ã³ã®ããªãã¼ãã¼ã¨ããã§ããããæ©è½ãã¦ããã¨ãå
¥åããrails
ã³ãã³ãã®èµ·åã次ããæ©ããªãããã§ãããéãè¯ãã¨åºã¾ãäºããããããã
ä»®ã«stop
ãããã¨ãã¦ããrails
ã³ãã³ããå
¥åããéã«èªåã§èµ·åããã®ã§å¤§ä¸å¤«ãããã
rake
ã¨ãã®ã³ãã³ãã§ã使ããããããããã®å ´åã¯ãbin/rake
ã®ããã«bin/
ãä»ããå¿
è¦ããããããã
éé
Rails.env
ã調ã¹ããã¦Railsã³ã³ã½ã¼ã«ãåãããã¨ãããåºã¾ã£ãã®ã§ãctl+c
ã§æ¢ãã¾ããã
$rails console ^C/Users/b0npu/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/spring-1.6.4/lib/spring/client/run.rb:98:in `gets': Interrupt from /Users/b0npu/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/spring-1.6.4/lib/spring/client/run.rb:98:in `verify_server_version' from /Users/b0npu/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/spring-1.6.4/lib/spring/client/run.rb:56:in `run' from /Users/b0npu/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/spring-1.6.4/lib/spring/client/run.rb:37:in `warm_run' from /Users/b0npu/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/spring-1.6.4/lib/spring/client/run.rb:26:in `call' from /Users/b0npu/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/spring-1.6.4/lib/spring/client/command.rb:7:in `call' from /Users/b0npu/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/spring-1.6.4/lib/spring/client/rails.rb:24:in `call' from /Users/b0npu/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/spring-1.6.4/lib/spring/client/command.rb:7:in `call' from /Users/b0npu/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/spring-1.6.4/lib/spring/client.rb:28:in `run' from /Users/b0npu/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/spring-1.6.4/bin/spring:49:in `<top (required)>' from /Users/b0npu/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/spring-1.6.4/lib/spring/binstub.rb:11:in `load' from /Users/b0npu/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/spring-1.6.4/lib/spring/binstub.rb:11:in `<top (required)>' from /Users/b0npu/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /Users/b0npu/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /Users/b0npu/RailsApp/app/bin/spring:13:in `<top (required)>' from bin/rails:3:in `load' from bin/rails:3:in `<main>'
ããå¤åããããããã¤ã(ãï¾Ð´ï¾)
æ¼ãå¯ããç¦ç¥æã«æ«ãããã«ãªããªãããrails stuckãã§æ¤ç´¢ãã¦ã¿ããããã¡ãã§spring stop
ã試ãããã«æ¸ãã¦ããã®ãè¦ã¤ãã¾ããã
ã¨ã©ã¼ãã°ãè¦ç´ãããã確ãã«spring
ãé¢ä¿ãããããªé°å²æ°ã ã£ãã®ã§spring stop
ã§æ¢ããã®ããåé ã®ã³ãã³ãå
¥åºåã§ãã
æ¬å½ã«spring stop
ã§rails
ã³ãã³ããåãããã«ãªãã®ã確èªãã¹ããRailsã³ã³ã½ã¼ã«ãåããã¦ã¿ã¾ãã
$rails console Running via Spring preloader in process 71052 Loading development environment (Rails 4.2.6) irb(main):001:0> Rails.env => "development" irb(main):002:0> exit
åãã( ï¾Ð´ï¾)
æ¬å½ã«spring
ãèªåã§åãåºãã®ããç¶æ
ã®ç¢ºèªããã¦ã¿ã¾ãã
$spring status Spring is running: 71050 spring server | railsapp | started 54 secs ago 71051 spring app | railsaaa | started 54 secs ago | development mode
ããããã£ã¡ãåãã¦ãã(ï¾Ðï¾)
æ³¥æ¿
ä»åééããã¨ã©ã¼ã¯ãµãã¯ãªã¨è§£æ±ºãã¾ããããspring stop
ã§è§£æ±ºããªãrails
ã³ãã³ãã®ã¨ã©ã¼ã«ééããããå¥éãè¨äºã«ãã¾ãã
åèè¨äº
spring stop
ã«ã¤ãã¦ã¯ããã¡ãã®è¨äºãåèã«ããã¦ããã ãã¾ããã
- ruby on rails console hanging when loading - Stack Overflow
- rails c とかが動かなかった原因は、rake rails:update してなかったから というオチ - Qiita
Springã«ã¤ãã¦ã¯ããã¡ãã®è¨äºãåèã«ããã¦ããã ãã¾ããã