Skip to content

Commit a288ab1

Browse files
authored
Set PYTHONUNBUFFERED=1 locally (#252)
Since otherwise when Django management commands like `manage.py runserver` are run via `heroku local`, the log buffering causes the server startup logs to not appear immediately.
1 parent 42fd0c5 commit a288ab1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.env

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@
77
# configuration for development vs production.
88
ENVIRONMENT="development"
99

10+
# Prevent log buffering when using using `heroku local` with Django management commands.
11+
PYTHONUNBUFFERED=1
12+
1013
# An example env var used in the tutorial.
1114
TIMES=2

0 commit comments

Comments
 (0)