_x2ang
Last Updated: February 01, 2017
·
3.797K
· vaughan
De54fa84f07f7200da5a1eb090ec717a

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.

Say Thanks
Respond

2 Responses
Add your response

14923
A2b36fe61081d63aa781f4ab7a6222d3

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

over 1 year ago ·
28560

NPM syntax is now:

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