Jan Dittberner
2c2a667d81
- 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
12 lines
203 B
Bash
Executable file
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
|