H
H
heihachi882014-11-11 18:22:46
Node.js
heihachi88, 2014-11-11 18:22:46

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

6 answer(s)
B
Boniface, 2014-11-11
@Boniface

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

A
Alex, 2014-11-11
@isqua

Forever in init.d .

K
Konstantin Kitmanov, 2014-11-11
@k12th

nohup nodemon myApp.js </dev/null &
Creepy, but it works.

S
sh84, 2014-11-14
@sh84

And if this is ubuntu, then you can not fence anything at all and just use upstart.

A
Andrey, 2014-11-21
@AndyGrom

Try node-deploy-server . Based on the forever suggested above, only with a lot of nice features. Here is an article on habré.

A
Archakov Dennis, 2018-02-21
@archakov06

Running Node.js in the background

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question