'How do you force a deploy to Heroku without doing a git commit

I had a case where a push to heroku failed because of a database issue. I fixed it, but the only way I know to deploy is via "git push heroku master". Since I didn't commit anything, it won't push a new deployment. The only way I can get it to deploy to make some minor change and then do it. Is there a way to force a deploy? I'm using play 2.1.2.



Solution 1:[1]

You could try a throw-away commit if you concern is to avoid actually saving the 'minor/dummy' commits to the repo permanently:

Heroku Throwaway Commit

See Section: "Automating the throwaway commit"

The author has basically automated the above with a quick bash script; however, as the author indicates use with caution -- you wouldn't want to use this in other situations with un-tested code.

Solution 2:[2]

https://www.darraghoriordan.com/2019/03/02/heroku-push-failed-force-rebuild/

heroku plugins:install heroku-releases-retry
heroku releases:retry
# or
heroku releases:retry --app darragh-starter

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 Chloe