4
加载时Ruby on Rails控制台挂起
出于某种原因,Ruby on Rails控制台拒绝启动。它只是挂了。我尚未对代码进行任何更改,使用相同版本的Ruby和Ruby on Rails的其他项目也没有问题。当我最终Ctrl+ C获得该堆栈跟踪时,它指向Spring。 我无法解释为什么这种情况从一瞬间到下一瞬间都可以正常工作。我已经通过RVM清除了所有的gem,并通过bundle命令重新安装了所有gem,但是还是没有运气。任何想法,将不胜感激。 据我所知,Ruby on Rails服务器也没有问题。该问题与项目相关,但是代码没有更改,只有Ruby on Rails控制台出现了问题。 Ruby 2.1.2 Rails 4.1.4 user_a@ubuntu:~/work/app_a$ rails console ^C/home/user_a/.rvm/gems/ruby-2.1.2/gems/spring-1.1.3/lib/spring/client/run.rb:54:in `gets': Interrupt from /home/user_a/.rvm/gems/ruby-2.1.2/gems/spring-1.1.3/lib/spring/client/run.rb:54:in `verify_server_version' from /home/user_a/.rvm/gems/ruby-2.1.2/gems/spring-1.1.3/lib/spring/client/run.rb:25:in `call' from /home/user_a/.rvm/gems/ruby-2.1.2/gems/spring-1.1.3/lib/spring/client/command.rb:7:in `call' from /home/user_a/.rvm/gems/ruby-2.1.2/gems/spring-1.1.3/lib/spring/client/rails.rb:23:in `call' from /home/user_a/.rvm/gems/ruby-2.1.2/gems/spring-1.1.3/lib/spring/client/command.rb:7:in `call' from /home/user_a/.rvm/gems/ruby-2.1.2/gems/spring-1.1.3/lib/spring/client.rb:26:in `run' from /home/user_a/.rvm/gems/ruby-2.1.2/gems/spring-1.1.3/bin/spring:48:in `<top (required)>' from /home/user_a/.rvm/gems/ruby-2.1.2/gems/spring-1.1.3/lib/spring/binstub.rb:11:in `load' from /home/user_a/.rvm/gems/ruby-2.1.2/gems/spring-1.1.3/lib/spring/binstub.rb:11:in `<top …
146
ruby-on-rails
ruby
console