I\'ve got a staging server with both standard Ruby and Ruby Enterprise installed. As standard Ruby refuses to install a critical gem, I need to set $PATH so that ruby/gem/r
I have the exactly same problem, but I think this solution is better:
set :default_environment, { 'env_var1' => 'value1', 'env_var2' => 'value2' }
This works for me like a charm.