tzurot-deployment

Deployment Procedures

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "tzurot-deployment" with this command: npx skills add lbds137/tzurot/lbds137-tzurot-tzurot-deployment

Deployment Procedures

Invoke with /tzurot-deployment for Railway operations.

Deployment Procedure

  1. Merge PR to develop (auto-deploys)

gh pr merge <PR-number> --rebase --delete-branch

  1. Monitor deployment

railway status --json railway logs --service api-gateway -n 100

  1. Verify health

curl https://api-gateway-development-83e8.up.railway.app/health

Rollback Procedure

git revert HEAD git push origin develop

Railway auto-deploys the revert

Log Analysis

Tail specific service

railway logs --service bot-client -n 50

Search for errors

railway logs --service api-gateway | grep "ERROR"

Trace request across services

railway logs | grep "requestId:abc123"

Find errors

railway logs | grep '"level":"error"'

Environment Variables

Preview changes (ALWAYS dry-run first)

pnpm ops deploy:setup-vars --env dev --dry-run

Apply to dev

pnpm ops deploy:setup-vars --env dev

List all for a service

railway variables --service api-gateway --json

Set single variable

railway variables --set "KEY=value" --service ai-worker --environment development

DELETE - Use Dashboard (CLI cannot delete!)

Database Migration Procedure

⚠️ Prisma uses LOCAL migrations folder! Checkout the branch matching deployed code first.

1. Checkout correct branch

git checkout main # For production

2. Check status

pnpm ops db:status --env prod

3. Apply migrations

pnpm ops db:migrate --env prod --force

Running Scripts Against Railway

Generic pattern

pnpm ops run --env dev <command>

One-off script

pnpm ops run --env dev tsx scripts/src/db/backfill.ts

Prisma Studio

pnpm ops run --env dev npx prisma studio

Service Restart

Note: 'railway restart' doesn't exist, use redeploy

railway redeploy --service bot-client --yes

Troubleshooting Checklist

Symptom Check Solution

Service crashed railway logs -n 100

Check missing env vars

Slow responses railway logs | grep duration

Check DB/Redis

Bot not responding bot-client logs Verify DISCORD_TOKEN

Migration failed pnpm ops db:status

Apply with db:migrate

References

  • Railway CLI: docs/reference/RAILWAY_CLI_REFERENCE.md

  • Railway Operations: docs/reference/deployment/RAILWAY_OPERATIONS.md

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

tzurot-council-mcp

No summary provided by upstream source.

Repository SourceNeeds Review
General

tzurot-testing

No summary provided by upstream source.

Repository SourceNeeds Review
General

tzurot-docs

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

tzurot-git-workflow

No summary provided by upstream source.

Repository SourceNeeds Review