Setup
Start a new machine.
update it - sudo apt update
Install nginx - sudo apt install nginx
Config app reverse proxies - frontend, backend -
Install node.js, npm using n (sometimes permission issue comes) - https://www.npmjs.com/package/n#installation
npm install -g pm2, npm install -g serve
Copy build folder from local to server .
pm2 serve build/ 3000 --spa --name synthetic
Install Jenkins for auto deployment
Create 2 Jenkins applications - frontend, backend & link repos.
Setup env variables on production.
Provision Database on Mongodb Cloud.
Setup DNS mapping to the newly created instance.
Install certbot for https certificate.
Last updated