Jan Dittberner
69a8177c4b
- 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
201 B
Bash
Executable file
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
|