0

我运行了 bundle update ,现在我的服务器抛出以下错误:

rails s
/Users/toptier/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:77:in `rescue in rescue in block in require': undefined method `gsub' for nil:NilClass (NoMethodError)
from /Users/toptier/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:72:in `rescue in block in require'
from /Users/toptier/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:62:in `block in require'
from /Users/toptier/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:55:in `each'
from /Users/toptier/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:55:in `require'
from /Users/toptier/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler.rb:119:in `require'
from /Users/toptier/Desktop/Projects/bestapp/config/application.rb:9:in `<top (required)>'
from /Users/toptier/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.2/lib/rails/commands.rb:53:in `require'
from /Users/toptier/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.2/lib/rails/commands.rb:53:in `block in <top (required)>'
from /Users/toptier/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.2/lib/rails/commands.rb:50:in `tap'
from /Users/toptier/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.2/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:31:in `require'
from script/rails:31:in `<main>'

行 application.rb:9 是:

Bundler.require(*Rails.groups(:assets => %w(development test)))

这是我的宝石清单:

source 'https://rubygems.org'
gem 'rails', '3.2.2'
gem 'pg'

gem 'thin'
gem 'eventmachine'
group :development do
   gem 'ruby-debug-base19'
   gem 'ruby-debug-ide'
  gem 'sqlite3'
end
gem 'sass-rails',   '~> 3.2.3'

# Gems used only for assets and not required
# in production environments by default.
group :assets do

   gem 'coffee-rails', '~> 3.2.1'

   # See https://github.com/sstephenson/execjs#readme for more supported runtimes
    #  gem 'therubyracer'

   gem 'uglifier', '>= 1.0.3'
end

gem "rails_config"
gem 'unicorn'
gem 'delayed_job_active_record'
gem 'rest-client'
gem 'httparty'
gem 'em-http-request'
gem 'devise'
gem 'paperclip'
gem 'activeadmin'
gem "meta_search",    '>= 1.1.0.pre'

gem 'aws-s3', :require => 'aws/s3' 
gem 'aws-sdk';

gem 'jquery-rails'
gem 'mysql2'
gem 'imgkit'
gem 'websnap'

gem 'randumb'
gem 'heroku'
gem 'newrelic_rpm'
gem 'annotate', 
:git => 'git://github.com/jeremyolliver/annotate_models.git', 
:branch => 'rake_compatibility'

gem 'tinymce-rails'

gem 'mail'    

服务器很薄

有什么帮助吗?

4

1 回答 1

3

尝试运行

bundle exec rails s
于 2012-10-08T23:37:52.450 回答