Skip to content

Feat/railway config files#250

Merged
LeonardoVieira1630 merged 7 commits intodevfrom
feat/railway_config_files
Apr 30, 2026
Merged

Feat/railway config files#250
LeonardoVieira1630 merged 7 commits intodevfrom
feat/railway_config_files

Conversation

@LeonardoVieira1630
Copy link
Copy Markdown
Member

@LeonardoVieira1630 LeonardoVieira1630 commented Apr 29, 2026

Summary

Wires up Railway-managed health checks across the notification system services so deploys are gated on liveness rather than just process start. Adds /health endpoints to the dispatcher and logic-system (which had no prior HTTP surface) and to the consumers webhook server, and updates each service's railway.toml to probe them.

Changes

  • Add /health endpoint to consumers webhook server with a Zod-typed response schema (apps/consumers/src/services/webhook/webhook-server.ts).
  • Introduce minimal Fastify health servers for dispatcher and logic-system (apps/dispatcher/src/server.ts, apps/logic-system/src/server.ts), wired into each app's start/stop lifecycle.
  • Add PORT env var (defaults: dispatcher 3004, logic-system 3005) via Zod env schemas and thread it through App constructors and index.ts entrypoints.
  • Add fastify and fastify-type-provider-zod dependencies to dispatcher and logic-system (package.json, pnpm-lock.yaml).
  • Configure Railway health checks (healthcheckPath = "/health", healthcheckTimeout = 30, restartPolicyMaxRetries = 3) for consumers, dispatcher, logic-system, and subscription-server.
  • EXPOSE service ports in consumers, dispatcher, and logic-system Dockerfiles.
  • Map and set PORT for dispatcher and logic-system in docker-compose.yml so local runs match the Railway setup.

LeonardoVieira1630 and others added 3 commits April 29, 2026 14:31
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@LeonardoVieira1630 LeonardoVieira1630 self-assigned this Apr 29, 2026
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
flow-editor Ready Ready Preview, Comment Apr 30, 2026 4:59pm
notification-system-dashboard Ready Ready Preview, Comment Apr 30, 2026 4:59pm

Request Review

@LeonardoVieira1630 LeonardoVieira1630 added the enhancement New feature or request label Apr 29, 2026
@LeonardoVieira1630 LeonardoVieira1630 marked this pull request as ready for review April 29, 2026 17:34
@railway-app railway-app Bot temporarily deployed to anticapture-infra / dev April 30, 2026 12:59 Inactive
Comment thread apps/consumers/railway.toml Outdated
@railway-app railway-app Bot temporarily deployed to anticapture-infra / dev April 30, 2026 16:58 Inactive
@railway-app railway-app Bot temporarily deployed to anticapture-infra / dev April 30, 2026 16:58 Inactive
@railway-app railway-app Bot temporarily deployed to anticapture-infra / dev April 30, 2026 16:58 Inactive
@LeonardoVieira1630 LeonardoVieira1630 merged commit 4b8c24e into dev Apr 30, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants