Answer the question
In order to leave comments, you need to log in
How to run a NodeJS application on a production server?
How do you run your applications on production servers so that it runs in the background all the time?
Answer the question
In order to leave comments, you need to log in
Here is one deployment strategy:
1) Put your project on github or bitbucket.
2) Connect to the product server and install git (for example, sudo apt-get git)
3) Download the project from the repository git pull -u origin master (example)
4) Install npm and node.js
5) Install forever and run your app through it (if express www)
This is purely an example, on the knee
And if this is ubuntu, then you can not fence anything at all and just use upstart.
Try node-deploy-server . Based on the forever suggested above, only with a lot of nice features. Here is an article on habré.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question