On Friday, April 10, 2015 at 9:38:05 PM UTC-4, Ingwie Phoenix wrote: > > > I looked into pm2, but I got a bit confused with it. I only saw CLI usage. >> What is a basic in-script usage? >> >> > CLI is the normal way -- it wraps your process and starts it, injecting > its magic. Weird, but works pretty well. > > Mm…I prefer to keep things self-contained. Workerman is the same for PHP, > really. I have a main script and then call that instead of a pre-installed > program. Gives me more control of the used versions and alike. I also > looked at forever - but neither pm2 or forever seem to allow to simply be > require()’d and then set up… well, looks like I’ll have to make my own > cluster initializer then. >
I hear you -- though you may consider adding pm2 or forever as a dependency in package.json, and adding an npm start script that starts it. Still self contained by some definition, at least self-specifying its dependencies. Mind the license though. What exactly do you mean? I am not a native english, so reading licenses > usually gives me grande headaches... > It's AGPL -- the most 'you must share' of the GPL style licenses. Older versions are under less restrictive licenses. Aria -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/41b34414-9144-47f8-9ac8-780763ae5b1e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
