Set env vars directly in server.json for local one-off overrides

Description

This overlaps a bit with what dotenv does, but I've seen a few scenarios where it would be handy to be able to override some one-off env vars right from the `server.json`.

Notes:

  • Keys in the env struct can reference other env vars which already exist

  • The rest of the server.json can reference env vars defined in the "env" object

  • deep keys such as env[ 'luis' ][ 'majano' ] will be converted to a single key called "luis.majano"

  • This means you can override a CFConfig setting via env var by EITHER setting "cfconfig_mySetting" or nesting "mySetting" under a "mySetting" object. (requires latest CFConfig)

Activity

Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Fix versions

Priority

Sentry

Created August 11, 2021 at 4:25 PM
Updated September 27, 2021 at 9:59 PM
Resolved August 11, 2021 at 4:25 PM