This example assumes your running a recent Ubuntu with upstart installed and you have install n from npm.
To see an example use of this ina a wider context, look at this gist for deploying node.js + nginx
Adapt as required.
- Put the
node.confin/etc/init/ - Create a folder for individual site configs to live in
/etc/node - Put the
node-test.confinside/etc/node - Create the folder for the logs
/var/logs/node