Skip to content

Commit c7839a6

Browse files
JasonGrace2282alanzhu0
authored andcommitted
fix: let django handle SIGTERM
This way, django can control how to peacefully shutdown connections to the DB
1 parent 5fa219a commit c7839a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/docker/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ export PYTHONUNBUFFERED=1 # Don't buffer Django output
1212
# Wrap the run command in a loop so that it restarts if it crashes, e.g. due to a syntax error
1313
while true
1414
do
15-
python3 manage.py run 0.0.0.0:8080 # Custom run command that skips system checks for performance
15+
exec python3 manage.py run 0.0.0.0:8080 # Custom run command that skips system checks for performance
1616
sleep 1
1717
done

0 commit comments

Comments
 (0)