We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba30666 commit 455f935Copy full SHA for 455f935
build/docker/entrypoint.sh
@@ -22,6 +22,14 @@ shutdown() {
22
# Trap SIGTERM and SIGINT signals (container stop or AWS shutdown notice)
23
trap shutdown SIGTERM SIGINT
24
25
+# Apply database migrations
26
+echo "Applying database migrations..."
27
+python manage.py migrate
28
+
29
+# Set up email templates with the --force option
30
+echo "Setting up email templates..."
31
+python manage.py setup_email_templates --force
32
33
# Start Gunicorn in the background with graceful timeout
34
echo "Starting Gunicorn..."
35
gunicorn --bind 0.0.0.0:8000 setup.wsgi:application --workers 4 --timeout 90 &
0 commit comments