Skip to content

Instantly share code, notes, and snippets.

View mizanmahi's full-sized avatar
🎯
Focused

Mizan Mahi mizanmahi

🎯
Focused
View GitHub Profile

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Create Free AWS Account

Create free AWS Account at https://aws.amazon.com/

2. Create and Lauch an EC2 instance and SSH into machine

I would be creating a t2.medium ubuntu machine for this demo.

@mizanmahi
mizanmahi / 1) Code setup
Created September 22, 2024 09:09 — forked from emondarock/1) Code setup
AWS SSL configuration with nodejs, nginx and letsencrypt using certbot
1) Clone Repo
2) Install all module by `sudo npm install`. After installing all modules if u get any error run `npm rebuild`
2) Install pm2 by running `sudo npm i pm2 -g`
4) run via pm2 `pm2 start pm2-config.json`