datatracker/dev/build/datatracker-start.sh
2024-05-13 21:41:36 -04:00

22 lines
692 B
Bash

#!/bin/bash
echo "Running Datatracker checks..."
./ietf/manage.py check
echo "Running Datatracker migrations..."
./ietf/manage.py migrate --settings=settings_local
echo "Starting Datatracker..."
gunicorn \
--workers ${DATATRACKER_GUNICORN_WORKERS:-9} \
--max-requests ${DATATRACKER_GUNICORN_MAX_REQUESTS:-32768} \
--timeout ${DATATRACKER_GUNICORN_TIMEOUT:-180} \
--bind :8000 \
--log-level ${DATATRACKER_GUNICORN_LOG_LEVEL:-info} \
ietf.wsgi:application
# Leaving this here as a reminder to set up the env in the chart
# Remove this once that's complete.
#--env SCOUT_NAME=Datatracker \