- Edited
Hello,
first of all thanks for your work to build aaPanel. I have started using is some days ago and really like the approach and how it works. So, this is my first question on the forum
Who can help me figuring out hoe to use PM2 manager to handle a nodejs/nextjs app and serve it as a website?
I'm running aaPanel (v. 6.8.4) on Ubuntu with LEMP stack installed.
Below is the list of task I should take to have it up and running. Would like to know if there is something also to be sone:
- Create a static website
- Create a nextjs app somewhere in my machine
- edit the nginx server block to act as reverse proxy to the nextjs app OR work directly on the NGINX plugin to map a reserve proxy?
- install PM2 manager
- Create a new entry on the PM2 where:
- root directory is the root directory of my nextjs app
- starter page is: pages/index.js
anything else? Any advice? Perhaps I'm not considering something or just have a wrong understanding about how it should work.
Many thanks for your thoughts.
Regards