Skip to content

kimschles/nginx-nodejs

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

nginx and Node.js

nodejs-server Deployment

  • SSH to your Ubuntu server
  • apt-get update
  • apt-get install docker.io
  • docker pull kimschles/nodejs-server:latest
  • docker run -p 8080:8080 kimschles/nodejs-server:latest
  • See the json data by opening your browser and going to http://<IP_ADDRESS_OF_YOUR_SERVER>:8080/

example-website Deployment

  • apt-get update
  • apt-get install docker.io
  • docker pull kimschles/example-website:latest
  • docker run -p 3000:3000 kimschles/example-website:latest
  • See the webpage by opening your browser and going to http://<IP_ADDRESS_OF_YOUR_SERVER>:3000/
  • See the json data by opening your browser and going to http://<IP_ADDRESS_OF_YOUR_SERVER>:3000/

Installing nginx

  • apt install nginx-core
  • vim /etc/nginx/sites-available/default
  • Delete the default config :%d
  • Paste in server block
  • service nginx reload

About

Example code for nginx and node.js talk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published