我通过RVM以及webby和capistrano宝石安装了ruby 1.9.2。 Webby不能与1.9.2一起工作,所以我通过RVM备份到ruby 1.8.7,将其设置为默认值,webby更好。
在此以前正常运行的网站上运行 cap deploy (对于其他人)时,我会收到以下信息:
瑞安@ ruby1:〜/项目/辛辛那提敏捷的会议$ 上限部署 /home/ryan/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in
gem_original_require': no such file to load -- railsless-deploy (LoadError) from /home/ryan/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in
需要” 来自/home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/configuration/loading.rb:152:inrequire' from Capfile:5:in
负载” 来自/home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/configuration/loading.rb:172:inload_from_file' from /home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/configuration/loading.rb:89:in
负载” 来自/home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/configuration/loading.rb:86:inload' from /home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/configuration/loading.rb:86:in
每个” 来自/home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/configuration/loading.rb:86:inload' from /home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/cli/execute.rb:65:in
load_recipes' 来自/home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/cli/execute.rb:65:ineach' from /home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/cli/execute.rb:65:in
load_recipes' 来自/home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/cli/execute.rb:31:inexecute!' from /home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/cli/execute.rb:14:in
执行” 来自/home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/bin/cap:4 来自/home/ryan/.rvm/gems/ruby-1.8.7-p334/bin/cap:19:in `负载” 来自/home/ryan/.rvm/gems/ruby-1.8.7-p334/bin/cap:19
Google-fu向我提出了不使用ruby软件包的建议,但我使用了RVM。
答案 0 :(得分:2)
当你回到1.8.7时,你安装了无轨部署宝石吗?