I have multiple nodeJS apps for my backend (1 app per subdomain) and nginx serving as proxy, redirecting traffic from :80 to a specific nodeJS app based on subdomain. I plan on setting up pm2 to deploy them (atm I do that manually), but need to learn pm2 firstIs it possible (and is it actually a good idea) to have pm2 deploy nginx config changes whenever I configure different port for an app or add a new app?Or is there maybe any better way to achieve that, i.e. some autodiscovery that would allow nginx to see ports that nodeJS are using?
Submitted September 24, 2020 at 08:12AM by burtekd
No comments:
Post a Comment