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
Created a pm2 web interface. #36
Conversation
server and maybe moving the options to /api.
I'll get on removing that too and get the app working. I tried Angular and I felt it was too bloat for this.
…re's any potential first before proceeding.
Great !!! I will take some time to review this during the week end Thanks ! |
This looks awesome, definitely potential here.. nice one! What do you guys think about making the dashboard a separate app? That would open even more possibilities, perhaps even monitoring PM2 on multiple servers through the one dashboard. |
+1 to separating the dashboard, much more flexible and cleaner. Nice job on the UI btw, looks great! |
This is fantastic! |
What is happening with this extension? Would love to have that and also adding some auth (at least basic http auth) |
Yes I always wanted to merge this PR to pm2 but I wanted to keep PM2 lean so I waited to build a communication interface. |
I'd love to see something like this, and for it to graph the memory and cpu usage of individual processes over time. Was about to start working on something similar so I'm glad someone beat me to it. +1 to monitoring pm2 instances on multiple machines too. |
I'm a bit surprised that it still isn't available as a separate npm module. |
Indeed. Perhaps rashly I've just grabbed the changes made by dunxrion and published them as a stand-alone express app on npm under the name pm2-web. There's a repo and instructions for it here: https://github.com/achingbrain/pm2-web As a bonus it'll also publish the availability of the page via Bonjour/zeroconf. I'll see about adding some of the features talked about above over the weekend. |
The multi-host monitoring support is all ready to go, I'm just waiting for Unitech/pm2-interface#5 to be merged and released for it to work. |
Unitech/pm2-interface#5 was merged a few weeks ago |
👍 this is a great idea, I was just thinking or writing something like this. Would be nice to start/stop processes as well. |
@knownasilya take a look at https://github.com/achingbrain/pm2-web (and/or https://npmjs.org/package/pm2-web) - in the "Actions" column are little icons that let you start, stop and restart processes. |
Seeing the potential in
pm2 web
I decided to add some more functionality. This pull request adds:pm2 web start|stop|restart
To start, run
pm2 web
and point your browser to http://localhost:9000.(Woops, just realized I forgot to use the configuration port. Will fix.)
I'm creating a pull request now to test the waters. Should I continue with the web interface? And if so, should I add the ability to start and stop processes? I can see some security issues arising but could be alleviated.