gpt4 book ai didi

ruby-on-rails - Rails 控制台无法启动

转载 作者:行者123 更新时间:2023-12-02 12:20:19 30 4
gpt4 key购买 nike

我位于应用程序的根目录中,当我键入时

$ rails console

看起来有东西正在加载,但什么也没发生。

当我停止^C时,我收到了这个跟踪:

^C/home/jonatas/.rvm/gems/ruby-2.1.2/gems/spring-1.1.3/lib/spring/client/run.rb:54:in `gets': Interrupt
from /home/jonatas/.rvm/gems/ruby-2.1.2/gems/spring-1.1.3/lib/spring/client/run.rb:54:in `verify_server_version'
from /home/jonatas/.rvm/gems/ruby-2.1.2/gems/spring-1.1.3/lib/spring/client/run.rb:25:in `call'
from /home/jonatas/.rvm/gems/ruby-2.1.2/gems/spring-1.1.3/lib/spring/client/command.rb:7:in `call'
from /home/jonatas/.rvm/gems/ruby-2.1.2/gems/spring-1.1.3/lib/spring/client/rails.rb:23:in `call'
from /home/jonatas/.rvm/gems/ruby-2.1.2/gems/spring-1.1.3/lib/spring/client/command.rb:7:in `call'
from /home/jonatas/.rvm/gems/ruby-2.1.2/gems/spring-1.1.3/lib/spring/client.rb:26:in `run'
from /home/jonatas/.rvm/gems/ruby-2.1.2/gems/spring-1.1.3/bin/spring:48:in `<top (required)>'
from /home/jonatas/.rvm/gems/ruby-2.1.2/gems/spring-1.1.3/lib/spring/binstub.rb:11:in `load'
from /home/jonatas/.rvm/gems/ruby-2.1.2/gems/spring-1.1.3/lib/spring/binstub.rb:11:in `<top (required)>'
from /home/jonatas/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/jonatas/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/jonatas/Code/Ruby/jonatasteixeira/bin/spring:16:in `<top (required)>'
from bin/rails:3:in `load'
from bin/rails:3:in `<main>'

我不知道发生了什么。

最佳答案

我可能回答得有点晚了,但为了其他正在寻找答案的人......它是 here

基本上,输入这个命令

spring stop

据我了解,问题出在 spring gem 上,具体来说,它检查服务器的版本,但结果不相符。

就我而言,当我向 gemfile 添加一些新的 gem 时,问题就开始了。

因此,一旦您停止 spring 并输入任何其他 Rails 命令,spring 重新启动,一切都应该再次正常工作,至少直到出现相同的问题,或者开发人员修补了问题。

关于ruby-on-rails - Rails 控制台无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24276033/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com