Steps to Configure Amazon EC2 for NodeJS app deployment

In this tutorial I will show you, how to configure Amazon EC2 server for an NodeJS app. Login to your Amazon EC2 server and execute the following commands.
Configure Amazon EC2 for NodeJS

Install NodeJS

Initialize the remote git repo

Configure hooks

Automate the deployment process

Copy content of C:\Users\\.ssh\ to remote Machine at .ssh folder

Add the following line to Local Machine (dist/.git/config)

Open http port from ec2 dashboard
Check with the command NODE_ENV=production node server

Configure IP tables to redirect all incoming connections to port 8080

Install MongoDB at amazon-ec2

How to install Mongo Database at amazon-ec2

Print Friendly

Related Posts

Written By: