chore: makefile + setup
This commit is contained in:
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
# Wrapper for the reminder cron job. Cron runs with almost no environment, so the
|
||||
# settings (and the VAPID keys) have to be loaded explicitly.
|
||||
set -euo pipefail
|
||||
|
||||
PROJECT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
cd "$PROJECT_DIR"
|
||||
|
||||
if [ -f .env ]; then
|
||||
set -a
|
||||
# shellcheck disable=SC1091
|
||||
. ./.env
|
||||
set +a
|
||||
fi
|
||||
|
||||
exec "${UV:-uv}" run --no-sync python manage.py send_reminders "$@"
|
||||
Reference in New Issue
Block a user