how to run node js remotely

Mark picture Mark · Apr 14, 2011 · Viewed 11.5k times · Source

I am running node using putty. but it doesn't work when putty session expire. How can I start node js permanently, should not be terminated if putty session end.

Answer

neebz picture neebz · Apr 14, 2011

I just solved that issue yesterday using Forever > http://blog.nodejitsu.com/keep-a-nodejs-server-up-with-forever

It's awesome.

  1. For Installing: npm install Forver

  2. For running: forever start yourServer.js

  3. For checking if its running: forever list

cool eh?