Canvas-LMS - LoadError:无法加载此类文件 - 并行

时间:2014-12-15 05:03:28

标签: ruby-on-rails ubuntu-12.04 rvm-capistrano canvas-lms

正在将画布部署到服务器,当我运行命令RAILS_ENV = production bundle exec rake canvas时:compile_assets我收到错误:

LoadError: cannot load such file -- parallel /var/www/prod/shared/bundle/ruby/1.9.1/gems/polyglot-0.3.5/lib/polyglot.rb:65:in需要&#39; /var/www/prod/shared/bundle/ruby/1.9.1/gems/polyglot-0.3.5/lib/polyglot.rb:65:in require' /var/www/prod/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in阻止在需要&#39; /var/www/prod/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:236:in load_dependency' /var/www/prod/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in要求&#39; /var/www/prod/releases/20141215031227/lib/tasks/canvas.rake:114:in block (2 levels) in <top (required)>' Tasks: TOP => canvas:compile_assets

检查并行gem的gem列表,检查确认bundle安装完成且没有错误。检查了gemset,权限,我还应该研究什么。

1 个答案:

答案 0 :(得分:1)

所以我们发现捆绑器没有安装我们需要的宝石并且导致了这个问题。自从我们与Capistrano一起部署后,我们设置了set :bundle_without, "nil"。或者您可以修改配置文件以删除bundle_without行。我们运行bundle install --deployment --without test development因为我们正在部署到生产中。