Revamp the AWS EC2 instance (Ubuntu)
Install Node.js (version 10 as per the requirement of the React frontend)
Reference Link: How To Install Node.js on Ubuntu 18.04
Install PM2 and yarn package manager
Install CodeDeploy agent for EC2
PM2 basics
shows the active processes
pm2 status
shows if the apache2 is active or not
sudo service apache2 status
will stop the apache2 web server
sudo service apache2 stop
shows the active pm2 process with their port ID
ps -ef | grep pm2
will delete the process named process-name Server if it’s active
pm2 delete “process-name”
will save/synchronize the current process list in /home/ubuntu/.pm2/dump.pm2
pm2 save
Installing Jenkins in the EC2 instance Reference Link: Installing Jenkins on Ubuntu on AWS
How to Enable Password Authentication in AWS ec2 Instances serverkaka.com/2018/08/enable-password-auth..
How to install Apache on Ubuntu Amazon EC2 Instance – AWS cloudbooklet.com/how-to-install-apache-on-u..
Installing Nginx on Ubuntu 20.04 LTS cyberciti.biz/faq/how-to-install-nginx-on-u..
DEPLOY A REACT + NODE APP TO PRODUCTION ON AWS dev.to/asim_ansari7/deploy-a-react-node-app..