gvamysql/gvamysql.sh
Jan Dittberner 88253ee37d Improve docker setup
- add .dockerignore to reduce build context
- add entrypoint.sh to initialize environment before user switch
- fix Celery setting deprecation warnings
- downgrade importlib-metadata for Celery compatibility
- set TZ environment variable for consistent Celery timestamps
2023-02-20 15:59:08 +01:00

12 lines
201 B
Bash
Executable file

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