doc: инструкция обновления YAML из terraform

This commit is contained in:
2026-08-02 06:34:38 +04:00
parent e368b18bde
commit 0a9ad193e8
+12 -2
View File
@@ -47,9 +47,19 @@ cd site && python app.py # порт 5000
# Тесты
pytest tests/ -v # 19 тестов
```
# Генерация конфигов из STANDS YAML
cd site && python from_stands.py <STANDS_DIR> services/
## Обновление YAML из terraform
**Вручную** — при каждом изменении в `~/tf_provider/generated/`:
```bash
cd site
python from_stands.py ~/tf_provider/generated/dev/resources_yaml services/dev
python from_stands.py ~/tf_provider/generated/test/resources_yaml services/test
python from_stands.py ~/tf_provider/generated/prod/resources_yaml services/prod
cd .. && git add services/ && git commit -m "regenerate YAML" && git push
# → редеплоить через Nubes
```
## API (17 эндпоинтов)