Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 1.17 KB

File metadata and controls

29 lines (20 loc) · 1.17 KB

Read Me

SSH into Server

ssh ubuntu@34.228.242.246 -i /Users/james/Documents/jcode_aws/jcode.pem

Deploy Updates

  1. Merge updates to main branch in GitHub
  2. ssh into the EC2 server: ssh ubuntu@34.228.242.246 -i /Users/james/Documents/jcode_aws/jcode.pem
  3. Enter jcode directory: cd code/jcode
  4. Pull the latest update: git pull
  5. Restart the server: pm2 restart 0
  6. Exit the server: exit

Using PM2

NPM Package for pm2

Using NGINX

Start Guide

Pitfalls

Directory Structure

Development Reference Docs

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