migrations + util scripts
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing

This commit is contained in:
2025-09-05 13:54:59 +09:00
parent dd065de3ed
commit f35113e5c8
9 changed files with 321 additions and 1 deletions

16
bin/update.sh Normal file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
set -e
echo "[update.sh] Получение свежего кода..."
git pull
echo "[update.sh] Пересборка контейнера..."
docker-compose build --no-cache
echo "[update.sh] Применение миграций Alembic..."
docker-compose run --rm bot alembic upgrade head
echo "[update.sh] Запуск контейнера..."
docker-compose up -d
echo "[update.sh] Готово!"