Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
Create free AWS Account at https://aws.amazon.com/
I would be creating a t2.medium ubuntu machine for this demo.
step1 : launch the ec2 machine or similar from other cloud service provider | |
step2 : download the private key | |
step3: ssh -i PRIVATE_KEY.pem ec2-user@<IP address> | |
step4: above code will give warning regarding saying permissiion are bad for private key | |
step 5: then run this command --> chmod 0400 PRIVATE_KEY.pem |
Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
Create free AWS Account at https://aws.amazon.com/
I would be creating a t2.medium ubuntu machine for this demo.