Created
June 17, 2011 04:29
-
-
Save simonrentzke/1030872 to your computer and use it in GitHub Desktop.
Cruise Control automated Heroku script.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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