Skip to main content

Railway Deployment

purr-api is deployed on Railway.

Setup

  1. Connect the smo1-io/purr-api GitHub repository to Railway
  2. Railway auto-detects the Dockerfile and builds automatically
  3. Configure environment variables in the Railway dashboard

Environment Variables

ENVIRONMENT=lion
PORT=8080
DATABASE_URL=<neon-connection-string>
REDIS_URL=<upstash-redis-url>
JWT_SECRET=<secret>
BETTER_AUTH_SECRET=<secret>
BETTER_AUTH_URL=https://app.smo1.io
BASE_URL=https://api.smo1.io

Deployments

  • Automatic: Pushes to main trigger production deployments
  • Preview: Pull requests create preview environments