Skip to content

Instantly share code, notes, and snippets.

@phuongdh phuongdh/deploy.rb
Created Apr 12, 2013

Embed
What would you like to do?
task :update_code do
run "cd #{current_release}; #{sudo :as => 'avalon'} git checkout Gemfile.lock; #{sudo :as => 'avalon'} git checkout config/role_map_development.yml; #{sudo :as => 'avalon'} git pull origin #{branch}"
end
task :migrate do
run "cd #{current_release}; #{sudo :as => 'avalon'} -i bundle exec rake RAILS_ENV=development db:migrate"
end
@cjcolvar

This comment has been minimized.

Copy link

cjcolvar commented Apr 12, 2013

task :sudo_test do
run "#{sudo :as => 'avalon'} -i -- sh -c 'cd #{current_release}; bundle exec rake RAILS_ENV=development -T'"
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.