Development and production environments #2
Labels
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: binaryDiv/PluralitySpace-django#2
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Write .env files for development and for production, use environment variables in settings.py.
For production: Replace SECRET_KEY, set DEBUG to False, set database credentials.
Also: Don't commit the production .env file to the repo! (We could encrypt it of course, but let's rather manage production secrets outside the repo.)
Done with production .env in repository, for now. The whole deployment process needs to be improved and more automated. For now it works.
Also done the nginx static file serving thing.
Used this guide btw: https://testdriven.io/blog/dockerizing-django-with-postgres-gunicorn-and-nginx/