Skip to content

Instantly share code, notes, and snippets.

@vinitraj10
Last active August 26, 2017 14:52
Show Gist options
  • Select an option

  • Save vinitraj10/5df3bc1bf064d8dc7e256884bdcfe913 to your computer and use it in GitHub Desktop.

Select an option

Save vinitraj10/5df3bc1bf064d8dc7e256884bdcfe913 to your computer and use it in GitHub Desktop.
Deploying Django on heroku

Overview

This is a simple setup to deploy django projects on heroku,This setup does not covers the static files part.

Heroku-Setup

First of fall you need to install Heroku CLI follow this link to install Heroku-cli in your local machine.

Project-Setup

Create a file name Procfile & Procfile.windows (Windows) without any extensions in your root directory
Procfile

web: gunicorn project_name.wsgi --log-file -

Procfile.windows

web: python manage.py runserver 0.0.0.0:5000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment