zapty / forever-service

Provision node script as a service via forever, allowing it to automatically start on boot, working across various Linux distros and OS
https://github.com/zapty/forever-service
MIT License
594 stars 65 forks source link

Add nvm support #63

Closed jpSimkins closed 8 years ago

jpSimkins commented 8 years ago

Ok, so after realizing the issue I am having it would be nice to have nvm support. Or at least an option to specify the node location so we can map the proper node install for the project.

Something like: -n --nodePath to keep consistant with the already available -p --foreverPath

jpSimkins commented 8 years ago

Never mind, I misunderstood how this worked. By passing option into forever I can get this working how I need.

sudo forever-service install portal --script /var/www/vhosts/domain/public_html/build/bundle/main.js -f " -c /usr/local/nvm/v0.10.43/bin/node" 

Thanks