andruschka / pm2-meteor

Simplest way to deploy, scale and run Meteor Apps with PM2.
https://www.npmjs.com/package/pm2-meteor
162 stars 38 forks source link

after the patch, we can specify node version by passing argument to PM2 #71

Closed crapthings closed 6 years ago

crapthings commented 6 years ago

but the cluster mode failed to work, i don't know why.

i know this solution is not good,

because it might still using the node version that nvm alias defaultly

the "nvm.use" tricks server to check node, npm and pm2 available with specify version

but at least we have idea how to make it work.

@andruschka pls help and add nvm support

love love from harbin

crapthings commented 6 years ago

just have to say it must have an env to let pm2 to know where nvm is

env

"NVM_DIR": "/home/cube/.nvm/"

server "exec_interpreter": "node@8.7.0"

crapthings commented 6 years ago

about cluster mode

https://github.com/Unitech/PM2/issues/1575#issuecomment-137406227

crapthings commented 6 years ago

found new solution, will make new pr