22 lines
700 B
Bash
22 lines
700 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 \
|