Environment variables
Environment variables store configuration and secrets your app reads at runtime — database URLs,
API keys, feature flags, and more. gy manages them without requiring a redeploy.
Set a variable
Section titled “Set a variable”gy config set env DATABASE_URL=postgres://user:pass@host:5432/dbgy config set env DEBUG=trueUpdate a variable
Section titled “Update a variable”Setting an existing key overwrites its value:
gy config set env DEBUG=falseRemove a variable
Section titled “Remove a variable”gy config unset env DEBUGPush changes
Section titled “Push changes”gy config syncUsing them in your app
Section titled “Using them in your app”Read them the standard way for your language:
import osDATABASE_URL = os.environ["DATABASE_URL"]const dbUrl = process.env.DATABASE_URL;Secrets in .gy.json
Section titled “Secrets in .gy.json”Variables are stored in your project’s .gy.json under env:
{ "env": { "DATABASE_URL": "postgres://…", "API_KEY": "…" }}