Skip to content

feat(T4): Railway deploy config + CI/CD#16

Open
openpango wants to merge 2 commits intolangoustine69:mainfrom
openpango:feat/t4-railway-deploy
Open

feat(T4): Railway deploy config + CI/CD#16
openpango wants to merge 2 commits intolangoustine69:mainfrom
openpango:feat/t4-railway-deploy

Conversation

@openpango
Copy link
Contributor

Summary

Complete Railway deployment setup for Queryx.

Deliverables

  • Dockerfile — Bun runtime, health check, production-ready
  • railway.json — Auto-restart on failure, health check path
  • .env.example — All vars documented with descriptions
  • DEPLOY.md — Zero-to-deployed guide (CLI + dashboard)
  • Smoke test — Validates health + 402 on paid endpoints

CI Workflow (needs workflow scope to push)

Add .github/workflows/ci.yml:

name: CI
on:
  push: { branches: [main] }
  pull_request: { branches: [main] }
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: oven-sh/setup-bun@v2
      - run: bun install
      - run: bun test
      - run: bun run tsc --noEmit

Closes #4

- Zod v4 schemas for all endpoints (request/response/error/health)
- Search orchestration layer (brave → rank → synthesize → cache)
- Routes: GET /v1/search, GET /v1/search/news, POST /v1/search/deep
- Health endpoint: GET /health (free)
- Agent setup with Lucid SDK + x402 payment middleware (Base USDC)
- Pricing: $0.001/search, $0.005/deep
- 60 tests passing (contract + logic + integration + freshness)
- .env.example with all required vars

Closes langoustine69#1
- Dockerfile with Bun runtime + health check
- railway.json with auto-restart policy
- .env.example with full documentation
- DEPLOY.md step-by-step guide
- Post-deploy smoke test script
- CI workflow provided in PR description (needs workflow scope to push)

Closes langoustine69#4
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.

[T4] Railway deploy config + CI/CD

1 participant