How a Solo Dev Deployed a Real-Time Multiplayer Game on Railway for $6/Month
A developer built Old Light, a browser-based real-time strategy game requiring persistent WebSocket connections, and chose Railway as its hosting platform because it runs long-lived processes rather than serverless functions. The game's codebase is structured as an npm monorepo with two separate Railway services — an Express/socket.io API and a Vite frontend — sharing a single repository. A key deployment challenge was preventing the frontend from going live before the backend, which the developer solved by syncing build IDs via a health-check endpoint that returns 503 until both services match. Additional hurdles included ensuring correct build order for shared packages, copying non-TypeScript assets manually, and configuring proxy trust settings behind Railway's TLS edge. The entire setup runs at roughly six dollars a month, which the developer describes as the least complicated host used for a stateful, real-time application.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in