doc: инструкция обновления YAML из terraform
This commit is contained in:
@@ -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 эндпоинтов)
|
||||
|
||||
Reference in New Issue
Block a user