Steps to deploy a Node.js app to AWS EC2 using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
Create a new EC2 instance or use an existing one. Connect to the instance via SSH.
Contact Me For Your Projects :) | |
Telegram: https://t.me/LinuxGun | |
WhatsApp: https://wa.link/5ow7oz | |
#!/bin/bash | |
# This will remove Apache | |
sudo service apache2 stop | |
sudo apt-get purge apache2 apache2-utils apache2.2-bin |