How to kill an heroku build that is in progress?

前端 未结 3 1765
我寻月下人不归
我寻月下人不归 2021-01-31 15:42

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 do

相关标签:
3条回答
  • 2021-01-31 15:47

    To view all builds run the following in your terminal:

    heroku builds -a YOUR_APP_NAME

    To cancel a specific (pending) build:

    heroku builds:cancel -a YOUR_APP_NAME HEROKU_BUILD_ID

    Update (4th July 2020):

    If you see the message Warning: builds is not a heroku command, run heroku plugins:install heroku-builds and try again.

    0 讨论(0)
  • 2021-01-31 15:48

    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
    
    0 讨论(0)
  • 2021-01-31 16:05

    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.

    0 讨论(0)
提交回复
热议问题