Skip to content

Instantly share code, notes, and snippets.

View denizkarakass's full-sized avatar
💻
Always Student

Deniz Karakaş denizkarakass

💻
Always Student
View GitHub Profile
@hasibdesk
hasibdesk / How to run multiple NodeJs app on same server and different domain and run all app concurrently using Nginx.md
Created November 30, 2019 03:49
Run multiple nodejs app in same server with different domain and run all app concurrently

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

Sometimes we need to run multiple nodejs app on same server with different domain or sub domain like admin.domain.com, api.domain.com and also need to run both nodejs or reactjs app concurrently. We can do this using 2 things , first of all we need to install nginx in our server for reverse proxy to connect different domain, and for running multiple nodejs app concurrently we can use PM2 NodeJs Process Manager

Please Make sure that you have installed these things on your server

  • NodeJS