Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop heroku build in progress

Tags:

node.js

heroku

I accidentally added npm start in the heroku post build process so now the build progress is stuck.

I did git push heroku master the build started normal and my server started as it should when running npm start, but because the npm start was in the post build it never finished. Because I'm on free account I only have one concurrent build process and because of the one stuck I can't build new version.

I already tried heroku ps -a APP_NAME and then heroku ps:kill web.1 for the single process that was running, but it didn't help.

ty

like image 1000
Nipatiitti Avatar asked Jan 10 '18 07:01

Nipatiitti


1 Answers

Heroku has a CLI Plugin with which you can manage your builds.

heroku builds -a example-app # take note of the build ID you'd want to display
heroku builds:cancel <id> -a example-app

In case anybody reading this might still need it!

like image 125
Dee-Dee Avatar answered Sep 19 '22 00:09

Dee-Dee