gvaweb/gvaweb.sh
Jan Dittberner 2c2a667d81 Improve docker setup
- add .dockerignore
- add entrypoint.sh to switch to user after initial setup
- downgrade importlib-metadata for Celery compatibility
- add TZ environment variable for consistent Celery timestamps
- fix Celery setting deprecation warnings
2023-02-20 16:11:15 +01:00

12 lines
203 B
Bash
Executable file

#!/bin/sh
set -e
QUEUE="web"
TASKS="${QUEUE}tasks"
APP="gvaweb"
export TZ="Europe/Berlin"
. "/srv/${APP}/.venv/bin/activate"
cd /srv/${APP}/${APP}
celery -A "${TASKS}" worker -Q "${QUEUE}" -E -l info