- Create Something to Deploy
- Create a
Dockerfile
in the root directory of the project- The
Dockerfile
location determines the root directory that the docker file's environment is built from- I.E. it'll affect
ADD
,COPY
,VOLUME
, etc.
- I.E. it'll affect
- This should set up the environment for the project to run
- IF THIS RELIES ON WEB TRAFFIC: a
$PORT
environment variable is required to be used because Heroku by default doesn't allow port selection. This means you need to rely on the environment having the $PORT variable available when crafting the launch command- Example:
CMD gunicorn --bind 0.0.0.0:$PORT example.wsgi
- Example:
- The
- Try to do all set up in here. A script will only complicate it and make it hard to understand deployment
- Create a
- (Optional) Clean up
- List existing remotes