Skip to content

Commit

Permalink
fix: let django handle SIGTERM
Browse files Browse the repository at this point in the history
This way, django can control how to peacefully
shutdown connections to the DB
  • Loading branch information
JasonGrace2282 authored and alanzhu0 committed Oct 6, 2024
1 parent 5fa219a commit c7839a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ export PYTHONUNBUFFERED=1 # Don't buffer Django output
# Wrap the run command in a loop so that it restarts if it crashes, e.g. due to a syntax error
while true
do
python3 manage.py run 0.0.0.0:8080 # Custom run command that skips system checks for performance
exec python3 manage.py run 0.0.0.0:8080 # Custom run command that skips system checks for performance
sleep 1
done

0 comments on commit c7839a6

Please sign in to comment.