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
595 stars 65 forks source link

how to install nodeJS app with json config ? #68

Open jerrygaoLondon opened 8 years ago

jerrygaoLondon commented 8 years ago

I'm new to both forever and the forever-service. Could you please give me an example how to install my nodejs app/service with a configuration file ?

Currently, my nodejs app can be started via a configuration file following the practice discussed in stackoverflow, which makes me easily configure script file, log file path, out file path , etc. I can easily start my app via forever start /mnt/storage/myapp/config/myapp_config.json.

The reason of mine for trying your forever-service is that i can share one forever instances for multiple users on our server.

arvind-agarwal commented 8 years ago

@jerrygaoLondon you could try

cd /mnt/storage/myapp/config/
sudo forever-service install myapp --script myapp_config.json
arvind-agarwal commented 8 years ago

@jerrygaoLondon did it work for you?

regevbr commented 7 years ago

worked for me