A
A
antirek2015-02-19 13:54:15
Software Deployment
antirek, 2015-02-19 13:54:15

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

1 answer(s)
A
Alex0007, 2015-04-18
@Alex0007

Deploy node.js app using pm2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question