如何配置capistrano以使用rvm版本的Ruby [英] How do I configure capistrano to use my rvm version of Ruby
本文介绍了如何配置capistrano以使用rvm版本的Ruby的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人知道我如何告诉 capistrano 使用我的默认 rvm 版本。它坚持使用系统版本。
Does anybody know how I can tell capistrano to use my default rvm version of ruby for on the server I am pushing to. It insists on using the system version.
有可能吗?
推荐答案
rvm-capistrano
gem 是最好的选择。
The rvm-capistrano
gem is the best way to go.
链接到该gem的官方详细用法。从中我猜这将得到Ruby的本地版本:
Link to the official detailed usage of that gem. From that I am guessing this will get the local version of Ruby:
set :rvm_ruby_string, ENV['GEM_HOME'].gsub(/.*\//,"") # Read from local system
这篇关于如何配置capistrano以使用rvm版本的Ruby的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文