Permalink
Browse files

add default path to cap dpeloy for rbenv

  • Loading branch information...
1 parent 8ebeee7 commit e5e848d19ca5b2caaffda2618eb3dcd4634bc47e @molawson committed Jan 4, 2013
Showing with 7 additions and 1 deletion.
  1. +7 −1 config/deploy.rb
View
@@ -10,6 +10,12 @@
set :use_sudo, false
set :deploy_to, "/srv/apps/#{application}/"
+
+set :default_environment, {
+ 'PATH' => "/home/#{user}/.rbenv/shims:/home/#{user}/.rbenv/bin:$PATH",
+ 'RAILS_ENV' => "production"
+}
+
default_run_options[:pty] = true
ssh_options[:forward_agent] = true
@@ -153,5 +159,5 @@
end
end
-before "deploy:setup", :db
+before "deploy:setup", "db"
after "deploy:update_code", "db:symlink"

0 comments on commit e5e848d

Please sign in to comment.