Skip to content

Instantly share code, notes, and snippets.

@v-fedorov
Created October 18, 2013 16:29
Show Gist options
  • Save v-fedorov/7044108 to your computer and use it in GitHub Desktop.
Save v-fedorov/7044108 to your computer and use it in GitHub Desktop.
namespace :brake do
desc "Run a task on a remote server."
# run like: cap brake:invoke task=a_certain_task
task :invoke do
run("cd #{deploy_to}/current; /usr/bin/env bundle exec rake #{ENV['task']} RAILS_ENV=production")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment