- Copy example.env to .env:
cp example.env .env
- Settings which will likely need to be set manually:
- For both:
DJANGO_SETTINGS_MODULE- usuallywebapp.settingsADMIN_USER
- For Development:
DEBUG- set it to trueSITE_URL
- For production:
DEBUG- set it to falseSECRET_KEYSITE_URLDEFAULT_FROM_EMAILAWS_STORAGE_BUCKET_NAMEDATABASE_URLCELERY_BROKER_URLMAILGUN_API_KEYCELERY_TASK_DEFAULT_QUEUEAXES_REDIS_URLAXES_KEY_PREFIXAXES_META_PRECEDENCE_ORDER
- For both:
- Important note: Docker Compose reads
.envfiles poorly. You will need to remove the double quotes from around the values being assigned. For example,- replace:
DJANGO_SETTINGS_MODULE="webapp.settings" - with:
DJANGO_SETTINGS_MODULE=webapp.settings
- replace:
- Ensure you have Docker, docker-compose, and the above Docker image on your system.
- See the Dotenv section above and follow the steps
- From within the project run make within the backend container:
docker-compose run --rm backend make install
- Start the Docker containers
docker-compose up -d
- Be sure to maintain and regularly run the tests within the project.
docker-compose run --rm backend make test
- Be sure to format all code before committing.
- Ensure the pre-commit git hook is installed
(within the environment from where git is run):
pre-commit install
- Running
git commitwill now cause the pre-commit hook to run before committing is possible.
- Ensure the pre-commit git hook is installed
(within the environment from where git is run):