#one off to ensure heroku remote is added to repo heroku git:remote -a myApp git remote add heroku git@heroku.com:myApp.git #disables curl https://heroku.newrelic.com/accounts/ACCTID/applications/APPID/ping_targets/disable -X POST -H "X-Api-Key: APIKEY" heroku maintenance:on --app myApp #push to heroku git push --force heroku master heroku run rake db:migrate --app myApp #enables curl https://heroku.newrelic.com/accounts/ACCTID/applications/APPID/ping_targets/enable -X POST -H "X-Api-Key: APIKEY" heroku maintenance:off --app myApp