name: ry-deploy description: "Деплой ry-deploy: деплой на сервер, prod, логи, fix-forward. Используй для: задеплой. EN: deploy to prod, verify deployment."
ry-deploy
Purpose
Synchronize local repository, GitHub, and server, then deploy safely with evidence. Automation is expected, but risky operations require code/log evidence and user questions with options.
Workflow
- Read deploy contract from
AGENTS.md, thenCLAUDE.md, then.serena/deploy/*.md. - Run
plugins/rldyour-flow/scripts/deploy_readiness.sh <server>when available as the deploy preflight. - Verify local git state, open PR, checks, Serena memories, docs, and GitHub sync.
- Inspect server baseline: git status, current commit, disk, logs before restart, process manager.
- Sync code to server.
- Run migrations only when readiness is clear.
- Restart/build services.
- Run postflight verification: logs, tests, health checks, and critical behavior.
- If anything fails, perform root cause analysis using server logs, code, and internet research. Fix-forward and redeploy. Ask the user with options for risky or ambiguous decisions.
- DB rollback only when explicit rollback command and backup/restore point are verified.
- Finish with
flow-post-task-sync.
No Fake Success
If auth, missing credentials, server access, or unavailable health checks prevent validation, state the limitation and what evidence was still collected.