ssh ubuntu@34.228.242.246 -i /Users/james/Documents/jcode_aws/jcode.pem
- Merge updates to main branch in GitHub
- ssh into the EC2 server:
ssh ubuntu@34.228.242.246 -i /Users/james/Documents/jcode_aws/jcode.pem - Enter jcode directory:
cd code/jcode - Pull the latest update:
git pull - Restart the server:
pm2 restart 0 - Exit the server:
exit
Deploying a Basic Express API on Amazon EC2
Setup Nginx for Your NodeJS Server on EC2
How To Create AWS EC2 Instance And Host NodeJS Application With Nginx