/**
* Railway Configuration Template
* Deploy Node.js apps with automatic PostgreSQL
*/
// railway.json example
export const railwayConfig = `{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS"
},
"deploy": {
"numReplicas": 1,
"sleepApplication": false,
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 10
}
}`;
// Environment variables for Railway
// Set these in your Railway dashboard or railway.toml
// Note: Use Railway variable references like Postgres.DATABASE_URL
export const railwayEnvVars = `
NODE_ENV = "production"
PORT = "3000"
DATABASE_URL = "Postgres.DATABASE_URL"
`;
// railway.toml example
export const railwayToml = `
[build]
builder = "nixpacks"
[deploy]
healthcheckPath = "/health"
healthcheckTimeout = 100
numReplicas = 1
`;