Skip to content

Instantly share code, notes, and snippets.

@simonrentzke
simonrentzke / gist:1030872
Created June 17, 2011 04:29
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]"