Last Updated: February 01, 2017
·
7.007K
· vaughan

Force redeploy of Node.js project on Heroku

Say you run git push heroku master and heroku responds with Everything up-to-date, but you want to force the re-deploy.

You might be adjusting config variables or testing with a new Heroku build pack.

Try this:

npm version build && git push heroku master

This command will increment the build version number in package.json and automatically commit and tag this change.

Saves a few keystrokes.

2 Responses
Add your response

Did they remove the "build" option for npm version ?

over 1 year ago ·

NPM syntax is now:

npm version patch && git push heroku master
over 1 year ago ·