web-pm2 icon indicating copy to clipboard operation
web-pm2 copied to clipboard

How to run web-pm2 after installed?

Open crazyyi opened this issue 9 years ago • 4 comments

Where is the processes directory of web-pm2 in Linux? I still don't know how to monitor the current pm2 process after I do a npm install. My app's entry is server.js. But web-pm2 can't find my app when my app is online.

crazyyi avatar Nov 10 '16 13:11 crazyyi

in linux they should be under /usr/local/lib/node_modules/web-pm2/processes

deanshub avatar Nov 10 '16 13:11 deanshub

Thanks but is it OK to modify files in the node_modules directory? Will it be overridden when I update the module? This looks more like a hack than configuration.

crazyyi avatar Nov 10 '16 13:11 crazyyi

That's a very good point, they will be deleted upon update, so right now I guess it's better to install this module locally. I'll try to think of something for global module, do you have any suggestions?

deanshub avatar Nov 10 '16 13:11 deanshub

It will be better if I can just create some configuration file in my project's root just like what pm2 generate command does, or even better just put the configuration in the package.json file and web-pm2 can read the settings from it.

crazyyi avatar Nov 10 '16 13:11 crazyyi