在将画布部署到服务器上时,当我运行命令RAILS_ENV=production bundle exec rake canvas:compile_assets时,会得到一个错误:
请求中的/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块“/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:inrequire”/var/www/prod/releases/20141215031227/lib/tasks/canvas.rake:114:in block (2 levels) in <top (required)>' Tasks: TOP => canvas:compile_assets
选中的创业板列表为并行创业板,检查到已确认的包安装已完成,没有出错。检查了宝石集,权限,我还应该查到什么。
发布于 2015-06-03 00:45:37
所以我们发现邦德勒没有安装我们需要的宝石,这导致了问题的出现。因为我们使用Capistrano部署,所以我们设置了set :bundle_without, "nil"。也可以修改配置文件以删除bundle_without行。我们运行bundle install --deployment --without test development是因为我们正在部署到生产中。
https://stackoverflow.com/questions/27477663
复制相似问题