From ff4bd2ba3d8d9893323f1c0ed2d9c41f873faff0 Mon Sep 17 00:00:00 2001 From: Serge Zaigraeff Date: Sun, 22 Mar 2026 05:43:48 +0300 Subject: [PATCH] Add deploy section to RULES.md Co-Authored-By: Claude Opus 4.6 (1M context) --- RULES.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/RULES.md b/RULES.md index bc0dcc4..e850504 100644 --- a/RULES.md +++ b/RULES.md @@ -56,3 +56,9 @@ Non-negotiable. Violation = stop and fix before continuing. * New audio input methods: add a `get_*_file()` function in `sources.py` returning `(temp_path, filename, error)`. * File validation runs through `FileValidator` -- never validate inline in routes. * Configuration values accessed via `self.config.get()` with sensible defaults, except critical params which must crash if missing. + +## Deploy + +* Server: `ssh orange`, path `/home/text-generation/servers/whisper-api` +* Обновление: `git push` → `ssh orange "cd /home/text-generation/servers/whisper-api && git pull"` → перезапуск сервиса через systemd (`whisper.service`) +* Проверка: `ssh orange "curl -s http://localhost:5042/health"`