changes to mobile styling in modal view, complete reword of backend worker system

This commit is contained in:
Bryan Van Deusen
2026-01-20 13:14:13 -05:00
parent 96f72718bd
commit cb3897c0b0
22 changed files with 2432 additions and 487 deletions
+8 -6
View File
@@ -5,6 +5,14 @@ set -e
export FLASK_APP=run.py
export FLASK_ENV=production
# If arguments are passed and first arg is NOT "web", execute them directly
# This allows: docker run <image> celery -A app.celery_app:celery worker ...
if [ $# -gt 0 ] && [ "$1" != "web" ]; then
exec "$@"
fi
# --- Web service mode (default or explicit "web" argument) ---
# --- Migrations with simple retry (no pg_isready needed) ---
if [ "${RUN_DB_MIGRATIONS:-1}" = "1" ]; then
ATTEMPTS="${MIGRATION_MAX_ATTEMPTS:-30}" # ~90s default with 3s sleep
@@ -26,12 +34,6 @@ if [ "${RUN_DB_MIGRATIONS:-1}" = "1" ]; then
flask version-check
fi
# --- Start the image import worker exactly once per container ---
if [ "${RUN_IMAGE_IMPORTER:-1}" = "1" ]; then
echo "Starting image import worker (background)…"
python image_import_worker.py &
fi
# --- Start Gunicorn ---
GUNICORN_BIND="${GUNICORN_BIND:-0.0.0.0:5000}"
GUNICORN_WORKERS="${GUNICORN_WORKERS:-8}"