* ci: parameterize gunicorn in datatracker-start.sh * fix: typo * ci: update settings_local for helm chart * ci: Add todo comment * ci: Drop redundant USE_TZ setting * ci: Require secrets in production * ci: fix indentation * style: Black * ci: memcached cfg from env in settings.py * ci: set SITE_URL in settings.py * refactor: /www/htpasswd -> /a/www/htpasswd (it's a symlink on production) * refactor: Remove obsolete SECR_ settings * refactor: SECR_MAX_UPLOAD_SIZE -> DATATRACKER_... * refactor: SECR_PPT2PDF_COMMAND -> PPT2PDF_COMMAND * ci: Fix up helm/settings_local * ci: Remove commented-out settings * ci: Refactor/improve env var guards * ci: More env refactoring / guards
25 lines
767 B
Bash
25 lines
767 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 --no-input
|
|
|
|
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 \
|