Implementation: How should Railway deployments be triggered from the GitHub ...

Documentation for Sessions

⚙️ Implementation: How should Railway deployments be triggered from the GitHub ...

Date: 2026-01-24
Time: 14:39:38 UTC
Session: editor2-64.5
Agent: documentation
Confidence: 95%
Status: ✅ Documented


📋 Decision Context

Question:

How should Railway deployments be triggered from the GitHub monorepo?

Task: Railway deployment strategy


🎯 Decision Made

Chosen:

Dedicated deploy branches per service (deploy/api, deploy/ai-api, deploy/docs-api)

Options Considered:

  1. Railway CLI from CI
  2. Auto-deploy on main branch
  3. Dedicated deploy branches per service
  4. GitHub Actions with Railway API

💭 Reasoning

Deploy branches solve monorepo challenges: 1) Each service deploys independently when its branch is updated, 2) Merge from main only when ready to deploy, 3) Each branch contains its own railway.toml pointing to the correct Dockerfile, 4) Easy rollback by reverting branch, 5) Clear separation of concerns. Railway watches specific branches, not file paths, making this the most reliable approach for monorepos.


📁 Files Involved


🔗 Related


Auto-generated by MCP Smart Consolidation