# Railway configuration file | |
[build] | |
builder = "dockerfile" | |
[deploy] | |
healthcheckPath = "/" | |
healthcheckTimeout = 30 | |
restartPolicyType = "on_failure" | |
startCommand = "npm start" | |
# 环境变量配置 | |
[env] | |
NODE_ENV = "production" | |
# 资源配置(推荐) | |
[resource] | |
cpu = 1000 # 1 vCPU | |
memory = 1024 # 1GB RAM |