Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run web-pm2 after installed? #2

Open
crazyyi opened this issue Nov 10, 2016 · 4 comments
Open

How to run web-pm2 after installed? #2

crazyyi opened this issue Nov 10, 2016 · 4 comments

Comments

@crazyyi
Copy link

crazyyi commented Nov 10, 2016

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
Copy link
Owner

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

@crazyyi
Copy link
Author

crazyyi commented Nov 10, 2016

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
Copy link
Owner

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
Copy link
Author

crazyyi commented Nov 10, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants