Railway config wildcard environment overrides
scarabcoder
PROOP

a year ago

Pretty sure this a feature request, but it would be incredibly useful if we could use a simple wildcard symbol for overrides in the Railway config file. For example:

{
  "deploy": {
    "runtime": "V2",
    "numReplicas": 1,
    "sleepApplication": false,
    "restartPolicyType": "ON_FAILURE",
    "healthcheckTimeout": 600,
    "restartPolicyMaxRetries": 10
  },
  "environments": {
    "sandbox-*": {
      "deploy": {
        "sleepApplication": true
      }
    }
  }
}

Where environment starting with sandbox- would automatically sleep. We do a lot of whitelabeling with dedicated environments, plus sandbox & demo environments for some of our partners, so it isn't very feasible for us to have to configure each environment in our codebase (we prefer to keep environment-specific variables in Railway).

1 Replies

scarabcoder
PROOP

a year ago

N/A


Loading...