How to kill an heroku build that is in progress?

假装没事ソ 提交于 2019-12-03 09:41:03

问题


I accidentally pushed a build that does an npm install in the postinstall script. This has led to my heroku app being stuck in an infinite install loop. I searched the heroku documentation on how to kill builds but came up blank. The closest thing I found was https://help.heroku.com/Z44Q4WW4/how-do-i-stop-a-release-phase and I tried killing as per those instructions but my build won't die :(


回答1:


The heroku-builds CLI plugin has a builds:cancel command which will stop a running build.

All builds will time out too after a time that can go between 15 minutes to 1 hour.




回答2:


If you have a build going into production right now and need to stop it quickly:

heroku plugins:install heroku-builds
heroku builds:cancel -a YOUR_HEROKU_APP_NAME



回答3:


To view all builds:

heroku builds -a YOUR_APP_NAME

To cancel a specific (pending) build:

heroku builds:cancel -a YOUR_APP_NAME BUILDID



来源:https://stackoverflow.com/questions/50970807/how-to-kill-an-heroku-build-that-is-in-progress

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!