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.
Written by Vaughan Rouesnel
Related protips
2 Responses
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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Heroku
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#