Skip to content

Latest commit

 

History

History
56 lines (37 loc) · 861 Bytes

deploy.md

File metadata and controls

56 lines (37 loc) · 861 Bytes

Deploy your Nodejs App

As we have build our nodejs application, we need to deploy it to AWS, so that we can visit it in the world.

Prerequisite of the AWS machine

  • Mongodb
  • Nodejs
  • Git
  • Nginx

Assuming you're gonna provision a ubuntu machine. Before you start, run:

sudo apt-get update

Install Mongodb

You can find details here.

sudo apt-get install -y mongodb

After it, please specify the path that mongodb need to put the data in,

mkdir -p /data/db

or

mongod --dbpath /some/existing/path

Install nodejs

sudo apt-get install -y nodejs

Install Git

sudo apt-get install -y git

Install Nginx

sudo apt-get install -y nginx

Note: The default Nginx directory in Ubuntu is /usr/share/nginx/html