Md Hasibul Hossain
2019-11-28T03:53:33Z

NodeJS App Deployment On Ubuntu Server.md

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. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

3. Install Node/NPM

curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -

sudo apt install nodejs

node --version

If you want to installed lates nodejs version or others version visit this url and there is available all of the version of nodejs . https://github.com/nodesource/distributions#debinstall