Deployments
Railway
Deploy Kaneo to Railway using the official template.
Railway Template
Kaneo provides an official Railway template for easy deployment with a single click.
What the Template Includes
The Railway template automatically configures:
- PostgreSQL Database: Managed PostgreSQL instance
- API Service: Pre-configured Hono API server
- Web Service: Pre-configured React web application
- Environment Variables: All required variables with sensible defaults
- Networking: Proper service discovery and internal communication
- Build Configuration: Optimized Docker builds for both services
Deployment Steps
- Click the Deploy Button above to open the Railway template
- Connect to Railway (sign up or log in if needed)
- Configure Environment Variables:
- Set your
AUTH_SECRET(minimum 32 characters) - Review other environment variables as needed
- Set your
- Deploy - Railway will build and deploy all services automatically
Post-Deployment Setup
After deployment completes:
- Access Your Application: Railway will provide URLs for both services
- Create Admin Account: Visit the web application to create your first user
- Configure Domain (optional): Add custom domains in Railway dashboard
- Set Up SSO (optional): Configure GitHub, Google, or other providers
Environment Variables
The template includes these pre-configured variables:
# Railway automatically sets these
DATABASE_URL=postgresql://postgres:password@host:port/database
KANEO_API_URL=https://your-api.railway.app
KANEO_CLIENT_URL=https://your-web.railway.app
# You may want to customize these
AUTH_SECRET=your-32-character-secret-here
CORS_ORIGINS=https://your-web.railway.appMonitoring and Scaling
Railway provides built-in:
- Health Checks: Automatic service monitoring
- Logs: Centralized logging for all services
- Metrics: Performance and usage analytics
- Scaling: Easy horizontal scaling when needed
Troubleshooting
If you encounter issues:
- Check Logs: Use Railway's log viewer to debug
- Verify Environment: Ensure all required variables are set
- Redeploy: Sometimes a fresh deployment resolves issues
- Check Resource Usage: Free tier has limitations
For more detailed troubleshooting, see the troubleshooting section.