gvapgsql/gvapgsql.sh
Jan Dittberner 69a8177c4b 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 15:49:17 +01:00

12 lines
201 B
Bash
Executable file

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