Railway Deployment

Deploy the SummonFlow socket server on Railway for persistent WebSocket connections.

Why Railway

Railway provides always-on compute with persistent processes — exactly what WebSocket servers need. Unlike serverless platforms, Railway keeps your process running so connections stay alive.

Quick Deploy

Terminal
# Install the socket server package and deploy
bun add your-summonflow-server-package
railway up

Environment Variables

Set the following in your Railway service:

SUMMON_STREAM_APP_KEY=your-app-key
SUMMON_STREAM_APP_SECRET=your-app-secret
REDIS_URL=redis://... # optional, for horizontal scaling

Or Use Managed

Don't want to manage Railway yourself? The managed platform handles all of this for you — just create an app and start connecting.