Monday 13 June 2016

Steps to Configure Amazon EC2 for NodeJS app deployment

Login to your Amazon EC2 server and execute the following commands.


Install NodeJS

Initialize the remote git repo

Configure hooks

Automate the deployment process

Copy content of C:\Users\\.ssh\id_rsa.pub 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 mongodb on amazon

No comments:

Post a Comment