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
def migrate_db(remote) | |
# sh %{heroku maintenance:on --remote #{remote}} || fail | |
sh %{heroku run --remote #{remote} bundle exec rake db:migrate} || fail | |
# sh %{heroku maintenance:off --remote #{remote}} || fail | |
end | |
def zero_deploy(environment, remote, branch) | |
original_path = pwd | |
deploy_name = "#{environment}_#{Time.now.strftime("%Y-%m-%d-%H-%M")}" | |
puts "-> bundle exec rake deploy:monitor[#{deploy_name}]" |