ruby-on-rails – 如何在使用gem时包含capistrano思考sphinx任务
发布时间:2020-12-17 03:43:34 所属栏目:百科 来源:网络整理
导读:我使用宝石思考狮身人面像: sudo gem install freelancing-god-thinking-sphinx --source http://gems.github.com 所以: require 'vendor/plugins/thinking-sphinx/recipes/thinking_sphinx' 哪个是prescribed on the website不起作用. 在使用gem时,如何
我使用宝石思考狮身人面像:
sudo gem install freelancing-god-thinking-sphinx --source http://gems.github.com 所以: require 'vendor/plugins/thinking-sphinx/recipes/thinking_sphinx' 哪个是prescribed on the website不起作用. 在使用gem时,如何在deploy.rb文件中包含capistrano思考sphinx任务? 编辑 添加:需要’thinking_sphinx / deploy / capistrano’ 给我: /usr/lib/ruby/gems/1.8/gems/freelancing-god-thinking-sphinx-1.1.12/lib/thinking_sphinx/deploy/capistrano.rb:1: undefined method `namespace' for main:Object (NoMethodError) from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require' from /usr/lib/ruby/gems/1.8/gems/capistrano-2.5.8/lib/capistrano/configuration/loading.rb:152:in `require' 解决方法
另一个答案中定义的简单要求 – thinking_sphinx / deploy / capistrano – 应该有效.如果不是,您是否看到任何错误?你使用的是什么版本的宝石?
如果失败了,也许可以尝试sudo gem更新,以防你的宝石老了. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |