I have a few Node apps, each hosted in a different container (Heroku dyno). All the apps use the same mongo models, so when I change a model, I have to change it for each app. I was wondering if there is a way to share the model files among all my apps.
I thought about hosting the model files in a different container, and then making them available to the apps, but I'm not sure how to do it.
A little more generally speaking, how can I share JavaScript files among different containers / servers? Is that the best approach to solve this problem?
Thanks!