Answer the question
In order to leave comments, you need to log in
How to correctly deploy a node.js application from github?
I have an application hosted on github. Those. I write it for everyone, everyone can do a git clone and run it on their own. Of course, this application should work in my infrastructure as well. I have app.js in my application - entry point (launch) and config.js - application configuration.
Let's say I wrote a new functionality, pushed it to github. Then I need to update a working previous version. I do a git pull, upload my config and run. But it's inconvenient. Because I have to separately store the config (and the deployment script) somewhere (you won’t be able to put the working config in the github repository).
It would be possible to arrange the application in the form of npm and make it as a dependency to your working project, where there are working configs and deployment scripts. Or is there a better way to organize it?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question