Configuration
gy config lets you change an app’s settings without redeploying. Aliases: gy cfg,
gy edit, gy settings.
View current config
Section titled “View current config”gy configChange the resource tier
Section titled “Change the resource tier”gy config set tier t2Scale up (t1 → t2 → t3) or down with one command. See Resource tiers
for sizing.
Toggle public access
Section titled “Toggle public access”gy config set public off # make privategy config set public on # make publicSet a custom domain
Section titled “Set a custom domain”gy config set domain api.mydomain.comSee Custom domains for DNS setup.
Change the port
Section titled “Change the port”gy config set port 8080Manage environment variables
Section titled “Manage environment variables”# Add or updategy config set env DATABASE_URL=postgres://...gy config set env DEBUG=true
# Removegy config unset env DEBUGSee Environment variables for details.
Push changes to the server
Section titled “Push changes to the server”Changes are staged locally until you sync:
gy config syncAvailable subcommands
Section titled “Available subcommands”| Command | Purpose |
|---|---|
gy config [show] |
Show current configuration |
gy config set tier <t1|t2|t3> |
Change resource tier |
gy config set public <on|off> |
Toggle public access |
gy config set domain <name> |
Set a custom domain |
gy config set port <number> |
Change the app port |
gy config set env KEY=VALUE |
Add or update an env variable |
gy config unset env KEY |
Remove an env variable |
gy config sync |
Push local config to the server |