Heroku does not update node.js> package.json Github tarball dependecies

I manage the dependency on Github, which I use as a dependency in my project. I put dependecy as a tarball link (namely https://github.com/username/dependecy/tarball/master ) in package.json and it works fine, as expected, locally. When I update the package on Github, I can run npm install , and all the dependencies, including the Github tar files, are updated. However, this does not apply to Heroka. Tarball dependent dependencies are not updated. Any ideas?

+6
source share
2 answers

Since no one answered this, I will share what I found out. The trick gets the hero to think that the tarball is different or new, so he loads it again. Since @celalo suggested that you can delete it or change the path, commit, click, change it, commit and click. It is dirty, but it works.

What I ended up doing is master1 branch. I maintain the branch synchronously with the master, and then change the tarball url between master and master1 when I need to update it.

0
source

I had a similar problem. My application depended on version carriage:

 "dependency": "^0.6", 

Thus, every time the dependency was updated, it was updated, and I wanted Heroku to update the dependency without any attempt / juggling with my application. For this, I asked just in case

 heroku config:set NODE_MODULES_CACHE=false 

And when a new version of the patch appeared, I manually reprogrammed the application that was already deployed on the Heroku toolbar. enter image description here Can you try to do the same for your business? Perhaps this will help you.

+1
source

Source: https://habr.com/ru/post/904906/


All Articles