I am trying to start my Node server inside an ubuntu upstart process. I really want to use my NVM environment. But I just can't seem to get it going.
Does anyone have a code snippet of an upstart job that launches their node application within a node virtual environment.
Change the script command to
exec bash -c 'source /home/dev/nvm/nvm.sh && exec node app' where /home/dev/nvm/nvm.sh is the filepath of your nvm.sh file see also http://doctrina.org/NodeJS-Under-NVM-With-Upstart.html