For this workshop you need to install the following.
- Docker
- Windows 10: https://runnable.com/docker/install-docker-on-windows-10
- Mac OSX:
- Linux: I recommend snap.
sudo snap install docker
To install snapsudo apt install snapd
- Heroku CLI
- Windows, Mac and Unix. https://devcenter.heroku.com/articles/heroku-cli
I have split the samples by tag so you can just check out the complete code for each sample.
Sample 1: git checkout tags/sample-1
Sample 2: git checkout tags/sample-2
Sample 2 git checkout tags/sample-3
How to setup the Heroku applications
- Create a heroku account.
- Create a new app for the django application
- Get cloudampq addon
- Get JawsDB MySQL addon
- Set ENVIRONMENT to PRD in environment vars
- Create a new application for the nginx-reverse proxy.
- Set DJANGO_APP to the address of your django app on heroku in environment vars.
To push an image to heroku
git remote add heroku https://git.heroku.com/nginx-reverse-proxy.git
heroku login -i
heroku container:login
heroku container:push web
heroku container:release web
Use heroku logs -t
to see the logs as your container is started.