开发者

Rails 3.1 application server start error

开发者 https://www.devze.com 2023-04-12 05:42 出处:网络
Ihave this old rails application which was working fine until recently. But now when I try to start rails server using

I have this old rails application which was working fine until recently. But now when I try to start rails server using

rails s

then it give error as -

  /home/rtdp/.rvm/gems/ruby-1.9.2-p290@mygemset/gems/rack-1.3.4/lib/rack/backports/uri/common_192.rb:53: warning: already initialized constant WFKV_
  /home/rtdp/.rvm/gems/ruby-1.9.2-p290@mygemset/gems/bundler-1.0.18/lib/bundler/runtime.rb:68:in `require': no such file to load -- false (LoadError)
    from /home/rtdp/.rvm/gems/ruby-1.9.2-p290@mygemset/gems/bundler-1.0.18/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
    from /home/rtdp/.rvm/gems/ruby-1.9.2-p290@mygemset/gems/bundler-1.0.18/lib/bundler/runtime.rb:66:in `each'
    from /home/rtdp/.rvm/gems/ruby-1.9.2-p290@mygemset/gems/bundler-1.0.18/lib/bundler/runtime.rb:66:in `block in require'
    from /home/rtdp/.rvm/gems/ruby-1.9.2-p290@mygemset/gems/bundler-1.0.18/lib/bundler/runtime.rb:55:in `each'
    from /home/rtdp/.rvm/gems/ruby-1.9.2-p290@mygemset/gems/bundler-1.0.18/lib/bundler/runtime.rb:55:in `require'
    from /home/rtdp/.rvm/gems/ruby-1.9.2-p290@mygemset/gems/bundler-1.0.18/lib/bundler.rb:120:in `require'
    from /home/rtdp/myapplication/config/application.rb:11:in `<top (required)>'
    from开发者_StackOverflow中文版 /home/rtdp/.rvm/gems/ruby-1.9.2-p290@mygemset/gems/railties-3.1.1/lib/rails/commands.rb:52:in `require'
    from /home/rtdp/.rvm/gems/ruby-1.9.2-p290@mygemset/gems/railties-3.1.1/lib/rails/commands.rb:52:in `block in <top (required)>'
    from /home/rtdp/.rvm/gems/ruby-1.9.2-p290@mygemset/gems/railties-3.1.1/lib/rails/commands.rb:49:in `tap'
    from /home/rtdp/.rvm/gems/ruby-1.9.2-p290@mygemset/gems/railties-3.1.1/lib/rails/commands.rb:49:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'

what might be causing this, I am using ruby - 1.9.2p290 rails - 3.1.1 bundler - 1.0.18

UPDATE:

I found this post. Using the rack version 1.3.3 fixed the warning of WFKV constant.


Ahh, finally I found that the way I use including turn gem was the issue.

I was doing this -

 gem 'turn', :require => 'false'

My bad. Corrected this thing and it works now.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号