Skip to content

A boilerplate which demonstrates how to use React / Django with Gunicorn and NGINX on Heroku.

Notifications You must be signed in to change notification settings

scoutbee/heroku-nginx-gunicorn-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heroku Gunicorn NGINX boilerplate Django CI

Deploy

This boilerplate provides an example of a React / Django (Client / Server) based application hosted on Heroku with a Gunicorn NGINX setup.

Relevant files

The .buildpacks file is used to use multiple Heroku buildpacks for different sub directories.

Find more about that file in the Buildpack documentation.

The app.json file is there for specifiying all the dependencies of your Heroku application. These can be addon-specific ones (Postgres e.g.), environment variables which needs to be set or hardware specification for you dynamic created environments via Review Apps.

Find more about that file in the Heroku docs.

Via this file you instruct Heroku which processes should be run on the Dynos (containers). Also you can set there a command which will be execute on each release to run e.g. SQL migrations.

Find more about that file in the Heroku docs.

Via this file we instruct NGINX to proxy all incoming requests which start with /api to the Gunicorn backend server. Also we serve the assets either via the directory where the client frontend is located or if the file does not exist via the Django staticfiles directory to provide Django Admin functionality.

Find more about that file in the Buildpack docs.

Other boilerplates for React / Django

About

A boilerplate which demonstrates how to use React / Django with Gunicorn and NGINX on Heroku.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published