-
-
Save jrochkind/f4977b6fe89bfcac55b3bfdfc869ead5 to your computer and use it in GitHub Desktop.
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
task :my_custom_heroku_release_phase do | |
if ENV['DATABASE_URL'] | |
Rake::Task["db:migrate"].invoke | |
else | |
$stderr.puts "\n!!! WARNING, no ENV['DATABASE_URL'], not running rake db:migrate as part of heroku release !!!\n\n" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment