We currently deploy the same node.js express API for 3 different customers. They each have their own config .env file, using a different port, different database, and different log file. They also each have their own reverse proxy through Apache.
Everything else, all the back-end source code and node_modules are the same. This means that whenever we need to update the back-end, we have to redeploy (i.e. rsync) each instance. It works but it's not super efficient, especially as we add more and more customers.
Is there a way we could maybe deploy the source code in a single template API and have each instance point to it except for the .env file? We could symlink everything to this template (except for the .env file) but there's a lot of files and this doesn't seem much better.. Wondering if someone already figured a better solution to do something like this.
Thanks.