Tuesday 15 September 2015

How can I run a node.js server -



How can I run a node.js server -

i'm new node , have many things unclear.

like, php, need index.php file on server's root dir , can work itself.

however, node.js file, need "node" command in terminal right?

so if close terminal? how can maintain running take requests?

you right in saying 'node' command start node process whatever script supply it.

as far keeping running, there several ways it. there plenty of cli libraries help you. example, 1 called forever

if using linux, can run node process background task:

node server.js &

node.js server

No comments:

Post a Comment