feat: implement referral payment system and enhance ticket management

This commit is contained in:
2026-04-18 22:34:15 +07:00
parent 3d19d9189b
commit 78a0ef9750
14 changed files with 165 additions and 31 deletions

22
entrypoints/dev.sh Normal file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
set -e
echo "[+] Formatting and checking..."
echo
ruff check --fix
black .
echo "[+] checking psql availability"
if ! pg_isready -h localhost -p 5432 ; then
echo "psql is down." >&2
exit 1
fi
echo "[+] psql is available!"
echo
echo "[+] Running migrations..."
echo
alembic upgrade head
echo "[+] Starting bot..."
python main.py