-
Notifications
You must be signed in to change notification settings - Fork 0
Deployment
Nathan Willson edited this page Feb 4, 2021
·
3 revisions
Thanks Heroku for making me do this:
heroku config:set NODE_MODULES_CACHE=false
git commit -am 'rebuild' --allow-empty
git push heroku master
heroku config:unset NODE_MODULES_CACHE
Taken from: here
Issue You want to clear the build cache for your app.
Resolution You can clear the build cache for an app using the following commands:
$ heroku plugins:install heroku-builds
$ heroku builds:cache:purge -a treelib
The cache will be rebuilt on the next deploy. If you do not have any new code to deploy, you can push an empty commit.
$ git commit --allow-empty -m "Purge cache"
$ git push heroku master
Where appname is replaced by the name of the app you want to clear the cache for.
https://help.heroku.com/18PI5RSY/how-do-i-clear-the-build-cache