Getting Started With Node – Course

Deploying Project on Github and running with PM2

Login to your Server using SSH.

ssh yourusername@dropletIP

Clone the Github project.

git clone <your githun repository URL>

Switch to the project directory.

cd project_name

Install dependencies.

npm install

Run the Node project using PM2. PM2 is a process management tool for Node. Using PM2 we can ensure 99% uptime of your application.

pm2 start file_name.js

Test your application using Droplet IP and port on which your application is running.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.