Skip to content

Instantly share code, notes, and snippets.

View Tomer-EVM's full-sized avatar

Tomer Tomer-EVM

View GitHub Profile
@Tomer-EVM
Tomer-EVM / gist:9a93a782fd20099d26965e435308e0b7
Last active November 25, 2025 07:29 — forked from HimDek/gist:ebaeac76babd871c68ebd7c4162ae1ba
Deploy Private GitHub repo of Express, React or Django app in AWS EC2 with Domain and free SSL

Comprehensive Guide for Deploying Express, React, and Django Apps on AWS EC2 with SSL (Using Deploy Keys and PM2 for Express)

1. Launch an EC2 Instance

  1. Launch an EC2 instance on AWS with an appropriate configuration (Ubuntu, t2.micro, etc.) and ensure it is publicly accessible.
  2. Configure Security Groups:
    • Open ports 22 (SSH), 80 (HTTP), and 443 (HTTPS) to allow web traffic.