Skip to content

chore(sap): harden deploy reliability (paths + preflight + logs)#198

Open
Cheewye wants to merge 1 commit intomainfrom
chore/deploy-reliability
Open

chore(sap): harden deploy reliability (paths + preflight + logs)#198
Cheewye wants to merge 1 commit intomainfrom
chore/deploy-reliability

Conversation

@Cheewye
Copy link
Owner

@Cheewye Cheewye commented Feb 7, 2026

Summary

  • Restrict v2 deploy triggers to code-relevant paths (no docs/workflow-only deploys)
  • Add pre-flight SSH check for sudo NOPASSWD + repo dir before deploy
  • Add stage markers + final OK/FAIL and non-fatal public /health check
  • Add nginx redirect to silence /v1/metrics/persistence noise
  • Add runtime map doc for Hetzner (health checks, routing, rollback)

Deploy triggers

  • backend/, config/, deploy/, tools/, requirements.txt

Does NOT trigger deploy

  • docs-only changes
  • workflow edits alone

Hetzner requirements (NOPASSWD)

  • /bin/systemctl daemon-reload
  • /bin/systemctl restart iuri-backend
  • /bin/systemctl --no-pager --full status iuri-backend

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant