mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-07 07:55:16 +02:00
12 lines
316 B
Bash
Executable file
12 lines
316 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
BASE_DIR="$(cd "$(dirname "$(dirname "${BASH_SOURCE[0]}")")" && pwd)"
|
|
ENV_FILE="$BASE_DIR/api/.env"
|
|
|
|
if [[ -f "$ENV_FILE" ]]; then
|
|
set -a && . "$ENV_FILE" && set +a
|
|
fi
|
|
|
|
cd "$BASE_DIR"
|
|
exec python -m arq api.tasks.arq.WorkerSettings --custom-log-dict api.tasks.arq.LOG_CONFIG
|