Add init/run scripts and Cursor/VSCode configurations
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 6s

- Add init.sh: initializes app with Docker, creates prod backup, restores to local DB
- Add run.sh: restarts all containers
- Update restore-db.sh: auto-selects latest dump, terminates active connections before restore
- Add .cursor/commands.json: Cursor commands (init, run, backupFromProd, restoreToLocal)
- Add .vscode/tasks.json: VSCode tasks for running scripts
- Add .vscode/launch.json: launch configurations for restarting server
- Remove play-life-backend/env.example (unified .env in root)
This commit is contained in:
poignatov
2026-01-03 17:08:42 +03:00
parent 2b9a024d3e
commit 6d7d59d2ae
7 changed files with 409 additions and 26 deletions

View File

@@ -1,18 +0,0 @@
# Database Configuration
DB_HOST=localhost
DB_PORT=5432
DB_USER=playeng
DB_PASSWORD=playeng
DB_NAME=playeng
# Server Configuration
PORT=8080
# Telegram Bot Configuration
# Bot Token и Chat ID настраиваются через UI приложения в разделе "Интеграции" -> "Telegram"
# Get token from @BotFather in Telegram: https://t.me/botfather
# Scheduler Configuration
# Часовой пояс для планировщика (формат IANA: Europe/Moscow, America/New_York и т.д.)
# ВАЖНО: Если не указан, используется UTC!
TIMEZONE=Europe/Moscow