Open xmedr opened 6 days ago
Probably also a good idea to add a note to the usage section indicating that the cookiecutter output should be added to GitHub as one initial commit to main
and triggering the publish package job via the Actions UI so the image that the tests and deployments depend on is created! Also making the package public (because our Heroku approach doesn't support building from private images).
Agreed, sounds good. Some more things to adjust:
CSRF_TRUSTED_ORIGINS = ["https://*.herokuapp.com", "http://localhost:8000"]
needs to go into settingsis_default_site=True
to the get_or_create.Oh yeah, for Wagtail, ALLOWED_HOSTS
also needs to include localhost:8000
for previews to work when editing pages.
Recently used this cookiecutter to deploy an app to heroku, and here are some findings for things to consider or sections to adjust:
docker build github.com/datamade/cookiecutter-django-app#main -t cookiecutter:latest
pytest
needs to be added torequirements.txt
clear_cache
management command needs to be added. Check out its implementation in la-metro-councilmatic for a solution.More may come as I finish the heroku deployment.