datatracker/dev/build/datatracker-start.sh
Robert Sparks b36ff61805 feat: use gunicorn (#7215)
* feat: use gunicorn

* fix: let gunicorn emit logs to stdout/stderr

* fix: log to stdout/stderr in json format

* fix: run collectstatic for the local copy of the statics
2024-05-13 21:41:36 -04:00

25 lines
618 B
Bash

#!/bin/bash
echo "Running Datatracker checks..."
./ietf/manage.py check
echo "Running Datatracker migrations..."
./ietf/manage.py migrate --settings=settings_local
echo "Running collectstatic..."
./ietf/manage.py collectstatic
echo "Starting Datatracker..."
gunicorn \
--workers 53 \
--max-requests 32768 \
--timeout 180 \
--bind :8000 \
--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 \