Giter VIP home page Giter VIP logo

heroku-nginx-node-example's Introduction

heroku-nginx-node-example

Build Status

An example of using Nginx as Reverse Proxy for Node server on Heroku Check out http://nginx-node-example.herokuapp.com/

You will see the X-Powered-By(Express) header at the response for the request of http://nginx-node-example.herokuapp.com/. Other paths(Static contents) are just from Nginx.

By Heroku Toolbet

Make sure you have Heroku Toolbelt installed and locate Nginx config(nginx.conf.erb) in config folder and Procfile at the project root path.

$ cd "to your Project Folder"
$ heroku create [APP NAME] --buildpack https://github.com/ddollar/heroku-buildpack-multi.git
$ git remote add heroku https://git.heroku.com/[APP NAME].git
$ echo "https://github.com/ryandotsmith/nginx-buildpack.git" >> .buildpacks
$ echo "https://github.com/heroku/heroku-buildpack-nodejs.git" >> .buildpacks
$ git add -A
$ git commit -m "init"
$ git push heroku master
$ heroku logs -t

Your app should now be running on http://[APP NAME].herokuapp.com/.

By Travis

Make sure you have .travis.yml with .buildpacks and locate Nginx config(nginx.conf.erb) in config folder and Procfile at the project root path.

By Heroku Deploy Button

Make sure you have app.json and locate Nginx config(nginx.conf.erb) in config folder and Procfile at the project root path.

Deploy

References

heroku-nginx-node-example's People

Contributors

narr avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.