Easily configure a performant, secure, and stable NGINX server.Learn More
Node Version Management in Production on Ubuntu 20.04 NGINX several sites
I have several sites/apps on the same Ubuntu 20.04 server with NGINX server blocks. The NodeJS apps are using different versions on NodeJS. Anyone who has experience/advice on how to install/configure nvm, volta or nvs in production to switch node versions and use different node versions for respective apps on the same Ubuntu server?
I have a WordPress site at /var/www/example.com/html (NGINX PHP) and I want my NodeJS apps to run in /var/www/example.com/html/nodejsapps (they will consume JSON Rest APIs from WordPress). How shall I configure to have my nodejsapps in the same html directory as my WordPress site?