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)
83 lines
2.2 KiB
JSON
83 lines
2.2 KiB
JSON
{
|
||
"version": "2.0.0",
|
||
"tasks": [
|
||
{
|
||
"label": "init",
|
||
"type": "shell",
|
||
"command": "./init.sh",
|
||
"group": {
|
||
"kind": "build",
|
||
"isDefault": false
|
||
},
|
||
"presentation": {
|
||
"echo": true,
|
||
"reveal": "always",
|
||
"focus": false,
|
||
"panel": "shared",
|
||
"showReuseMessage": true,
|
||
"clear": false
|
||
},
|
||
"problemMatcher": [],
|
||
"detail": "Инициализация Play Life: остановка контейнеров, поднятие сервисов, создание дампа с продакшена и восстановление в локальную базу"
|
||
},
|
||
{
|
||
"label": "run",
|
||
"type": "shell",
|
||
"command": "./run.sh",
|
||
"group": {
|
||
"kind": "build",
|
||
"isDefault": false
|
||
},
|
||
"presentation": {
|
||
"echo": true,
|
||
"reveal": "always",
|
||
"focus": false,
|
||
"panel": "shared",
|
||
"showReuseMessage": true,
|
||
"clear": false
|
||
},
|
||
"problemMatcher": [],
|
||
"detail": "Перезапуск Play Life: перезапуск всех контейнеров"
|
||
},
|
||
{
|
||
"label": "backupFromProd",
|
||
"type": "shell",
|
||
"command": "./dump-db.sh",
|
||
"group": {
|
||
"kind": "build",
|
||
"isDefault": false
|
||
},
|
||
"presentation": {
|
||
"echo": true,
|
||
"reveal": "always",
|
||
"focus": false,
|
||
"panel": "shared",
|
||
"showReuseMessage": true,
|
||
"clear": false
|
||
},
|
||
"problemMatcher": [],
|
||
"detail": "Создание дампа базы данных с продакшена"
|
||
},
|
||
{
|
||
"label": "restoreToLocal",
|
||
"type": "shell",
|
||
"command": "./restore-db.sh",
|
||
"group": {
|
||
"kind": "build",
|
||
"isDefault": false
|
||
},
|
||
"presentation": {
|
||
"echo": true,
|
||
"reveal": "always",
|
||
"focus": false,
|
||
"panel": "shared",
|
||
"showReuseMessage": true,
|
||
"clear": false
|
||
},
|
||
"problemMatcher": [],
|
||
"detail": "Восстановление базы данных из самого свежего дампа в локальную базу (автоматически выбирает последний дамп)"
|
||
}
|
||
]
|
||
}
|
||
|