A lightweight Django server ready for deployment on Heroku.
Clone this repository: git clone git@github.com:iSuperMostafa/minimal-django-heroku.git
- Create virtualenv:
virtualenv env
- Activate env:
source env/bin/activate
- Install pipenv:
pip install pipenv
- Install requirements:
pipenv install
Run the server: gunicorn app.wsgi
Signup to Heroku here.
sudo apt-get update
sudo apt-get install ruby-full
sudo add-apt-repository "deb https://cli-assets.heroku.com/branches/stable/apt ./"
curl -L https://cli-assets.heroku.com/apt/release.key | sudo apt-key add -
sudo apt-get update
sudo apt-get install heroku
heroku login
heroku create --buildpack heroku/python
heroku config:set DISABLE_COLLECTSTATIC=1
git push heroku master
heroku logs