Skip to content
Browse files

cap tweaks

  • Loading branch information...
1 parent fb2097f commit 3e75300421daf24238ab725ecc57b742d1e12dce @BDQ BDQ committed Feb 11, 2013
Showing with 8 additions and 2 deletions.
  1. +8 −2 config/deploy.rb
View
10 config/deploy.rb
@@ -1,5 +1,3 @@
-$:.unshift(File.expand_path('./lib', ENV['rvm_path']))
-require "rvm/capistrano"
require "bundler/capistrano"
# load 'deploy/assets'
@@ -24,6 +22,14 @@
default_run_options[:pty] = true
set :ssh_options, { :forward_agent => true }
+set :default_environment, {
+ 'PATH' => "/usr/local/rvm/gems/ruby-1.8.7-p352/bin:/usr/local/rvm/gems/ruby-1.8.7-p352@global/bin:/usr/local/rvm/rubies/ruby-1.8.7-p352/bin:$PATH",
+ 'RUBY_VERSION' => 'ruby 1..8.7',
+ 'GEM_HOME' => '/usr/local/rvm/gems/ruby-1.8.7-p352',
+ 'GEM_PATH' => '/usr/local/rvm/gems/ruby-1.8.7-p352:/usr/local/rvm/gems/ruby-1.8.7-p352@global',
+ 'BUNDLE_PATH' => '' # If you are using bundler.
+}
+
namespace :foreman do
desc "Export the Procfile to Ubuntu's upstart scripts"

0 comments on commit 3e75300

Please sign in to comment.
Something went wrong with that request. Please try again.