Development and production environments #2

Closed
opened 2019-09-24 01:12:36 +02:00 by binaryDiv · 2 comments
Owner

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.)

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.)
binaryDiv added the
deployment
label 2019-09-24 01:12:36 +02:00
Author
Owner

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.

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.
Author
Owner
Used this guide btw: https://testdriven.io/blog/dockerizing-django-with-postgres-gunicorn-and-nginx/
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: binaryDiv/PluralitySpace-django#2
No description provided.