deanshub / web-pm2

Web interface for PM2 built with react
43 stars 9 forks source link

How to run web-pm2 after installed? #2

Open crazyyi opened 7 years ago

crazyyi commented 7 years ago

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.

deanshub commented 7 years ago

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

crazyyi commented 7 years ago

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.

deanshub commented 7 years ago

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?

crazyyi commented 7 years ago

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.