Add init/run scripts and Cursor/VSCode configurations
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 6s
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:
33
.cursor/commands.json
Normal file
33
.cursor/commands.json
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"commands": [
|
||||
{
|
||||
"name": "init",
|
||||
"description": "Инициализация Play Life: остановка контейнеров, поднятие сервисов, создание дампа с продакшена и восстановление в локальную базу",
|
||||
"command": "./init.sh",
|
||||
"type": "shell",
|
||||
"cwd": "${workspaceFolder}"
|
||||
},
|
||||
{
|
||||
"name": "run",
|
||||
"description": "Перезапуск Play Life: перезапуск всех контейнеров",
|
||||
"command": "./run.sh",
|
||||
"type": "shell",
|
||||
"cwd": "${workspaceFolder}"
|
||||
},
|
||||
{
|
||||
"name": "backupFromProd",
|
||||
"description": "Создание дампа базы данных с продакшена",
|
||||
"command": "./dump-db.sh",
|
||||
"type": "shell",
|
||||
"cwd": "${workspaceFolder}"
|
||||
},
|
||||
{
|
||||
"name": "restoreToLocal",
|
||||
"description": "Восстановление базы данных из самого свежего дампа в локальную базу (автоматически выбирает последний дамп)",
|
||||
"command": "./restore-db.sh",
|
||||
"type": "shell",
|
||||
"cwd": "${workspaceFolder}"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user