Deploy to Railway
Create a Dockerfile
Use the Docker deployment patterns to create your Dockerfile, or use a minimal example:
Adjust the Dockerfile to match your project structure. The key requirement is that the
dist/ directory containing the build artifact is available at runtime.Set environment variables
Railway-managed databases
Railway provides one-click managed databases. Add a PostgreSQL or MySQL plugin from the dashboard, and Railway automatically injects the connection string as an environment variable..terse configuration:
Custom domains
In the Railway dashboard, navigate to Settings > Domains and add your custom domain. Railway provisions TLS certificates automatically.Scaling
Railway supports horizontal scaling through the dashboard. Increase the number of replicas under your service’s Settings > Scaling section. Each replica runs an independent instance ofhyperterse serve.