How to rebuild production bundle dependencies


We decided to store the production bundle in our git repository. However we don’t want to save all the node_modules directories from bundle in our git.
Is there a way to rebuild the node_modules directories after pulling the bundle from git ?

Server Setup Information

  • Version of Rocket.Chat Server: 5.3.0-develop
  • Operating System: Ubuntu 20.04.5 LTS
  • Deployment Method: docker
  • Number of Running Instances: 1 development 1 for prod testing. On real prod will be only 1 prod instance
  • DB Replicaset Oplog:
  • NodeJS Version: 14.19.3
  • MongoDB Version: 5.0.5
  • Proxy: nginx
  • Firewalls involved:

Hi! Welcome to our community. :hugs:

the node_modules should already by in .gitignore, so it will not be added.

once your clone the repo, if you run yarn, it should download all dependencies for your, then you proceeding with the building.

Not sure if this is you doubt, but let me know if this helps :slight_smile: