How to clean cache in heroku after installing dependencies?

Viewed 10645

Topic : Heroku Problem : After installing my node js application in heroku, I made some changes in package.json. Now, when I am trying to push changes again, new dependencies are not getting installed. Heroku is picking the dependencies from cache.

How to disable cache in heroku ?

2 Answers

I'm aware of answering this question now is too late but no wonder someone will need to solve this issue at anytime...

Anyways, you can clear the build cache of an app easily by installing heroku-builds plugin.

  1. Installation:

heroku plugins:install heroku-builds

  1. Usage:

heroku builds:cache:purge -a your-app-name

Note: The cache will be rebuilt on the next deployment. 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

Related