Skip to content

Instantly share code, notes, and snippets.

@simonrentzke
Created June 17, 2011 04:29
Show Gist options
  • Save simonrentzke/1030872 to your computer and use it in GitHub Desktop.
Save simonrentzke/1030872 to your computer and use it in GitHub Desktop.
Cruise Control automated Heroku script.
if CruiseControl::invoke_rake_task 'spec'
puts "Pushing on heroku... [Start]"
`git push heroku master`
puts "Pushed on heroku. [Done]"
puts "Running migrations... [Start]"
`heroku rake db:migrate`
puts "Migrated... [Done]"
puts "Prepare test db... [Start]"
`heroku rake db:test:prepare`
puts "Test database ready [Done]"
puts "Populate datas... [Start]"
`heroku rake heroku:populate`
puts "Populated... [Done]"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment