Ruby on rails 为什么';rake资产:预编译&x27;给予';NoMethodError:nil:NilClass';的未定义方法[];?

Ruby on rails 为什么';rake资产:预编译&x27;给予';NoMethodError:nil:NilClass';的未定义方法[];?,ruby-on-rails,Ruby On Rails,我正试图用Capistrano部署一个项目,但我遇到了这个错误 当我直接在服务器上运行命令时,同样的情况也会发生。下面是/opt/rbenv/shimmes/bundle exec rake资产的输出:预编译--trace **调用资产:预编译(第一次) **调用资产:环境(第一次) **执行资产:环境 **调用环境(第一次) **执行环境 **执行资产:预编译 雷克流产了! NoMethodError:nil类的未定义方法“[]” [snip]/shared/bundle/ruby/2.2.0

我正试图用Capistrano部署一个项目,但我遇到了这个错误

当我直接在服务器上运行命令时,同样的情况也会发生。下面是
/opt/rbenv/shimmes/bundle exec rake资产的输出:预编译--trace

**调用资产:预编译(第一次)
**调用资产:环境(第一次)
**执行资产:环境
**调用环境(第一次)
**执行环境
**执行资产:预编译
雷克流产了!
NoMethodError:nil类的未定义方法“[]”
[snip]/shared/bundle/ruby/2.2.0/gems/less-rails-2.6.0/lib/less/rails/template\u handlers.rb:37:在“配置路径”中
[snip]/shared/bundle/ruby/2.2.0/gems/less-rails-2.6.0/lib/less/rails/template\u handlers.rb:26:在'config\u to\u less\u parser\u options'中
[snip]/shared/bundle/ruby/2.2.0/gems/less-rails-2.6.0/lib/less/rails/template_handlers.rb:17:in'evaluate'
[snip]/shared/bundle/ruby/2.2.0/gems/tilt-1.4.1/lib/tilt/template.rb:103:in'render'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/legacy_tilt_processor.rb:25:in'call'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/processor\u utils.rb:73:in'call\u processor'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/processor_utils.rb:55:in `块入调用处理器'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/processor_utils.rb:54:in‘reverse_each’
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/processor_utils.rb:54:in'call_processors'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/loader.rb:103:in'load_asset_by_uri'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/loader.rb:40:in'block in load'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/loader.rb:170:'fetch_asset_from_dependency_cache'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/loader.rb:33:in'load'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/cached_environment.rb:20:in`block in initialize'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/cached_-environment.rb:47:in'yield'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/cached_environment.rb:47:in'load'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/bundle.rb:23:in'block-in-call'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/utils.rb:183:in'dfs'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/bundle.rb:24:in'call'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/processor\u utils.rb:73:in'call\u processor'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/processor_utils.rb:55:in `块入调用处理器'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/processor_utils.rb:54:in‘reverse_each’
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/processor_utils.rb:54:in'call_processors'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/loader.rb:103:in'load_asset_by_uri'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/loader.rb:40:in'block in load'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/loader.rb:170:'fetch_asset_from_dependency_cache'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/loader.rb:33:in'load'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/cached_environment.rb:20:in`block in initialize'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/cached_-environment.rb:47:in'yield'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/cached_environment.rb:47:in'load'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/base.rb:63:in'find_asset'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/base.rb:70:“查找所有链接的资产”
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/manifest.rb:138:in'block in find'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/legacy.rb:114:in `逻辑_路径中的块(2层)'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/path_utils.rb:223:in'block in stat_tree'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/path_utils.rb:207:in`block in stat_directory'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/path_utils.rb:204:in'each'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/path_utils.rb:204:in'stat_directory'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/path_utils.rb:222:in'stat_tree'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/legacy.rb:105:in'each'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/legacy.rb:105:在“逻辑路径中的块”中
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/legacy.rb:104:in'each'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/legacy.rb:104:在“逻辑路径”中
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/manifest.rb:136:in'find'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/sprockets/manifest.rb:162:in'compile'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-rails-2.2.4/lib/sprockets/rails/task.rb:70:in“定义中的块(3个级别)”中
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-3.0.1/lib/rake/sprocketstask.rb:147:in'with_logger'
[snip]/shared/bundle/ruby/2.2.0/gems/sprockets-rails-2.2.4/lib/sprockets/rails/task.rb:69:in“定义中的块(2个级别)”中
/opt/rbenv/versions/2.2.0/lib/ruby/2.2.0/rake/task.rb:240:in'call'
/opt/rbenv/versions/2.2.0/lib/ruby/2.2.0/rake/task.rb:240:in'block in execute'
/opt/rbenv/versions/2.2.0/lib/ruby/2.2.0/rake/task.rb:235:in'each'
/opt/rbenv/versions/2.2.0/lib/ruby/2.2.0/rake/task.rb:235:in'execute'
/opt/rbenv/versions/2.2.0