Environment Variables
Set, view, and remove environment variables for your apps.
#View Config
Go to your app → Config tab.
bash
wokku config my-app
bash
curl https://wokku.dev/api/v1/apps/my-app/config \
-H "Authorization: Bearer $TOKEN"
Ask Claude: “Show environment variables for my-app”
Tap your app → Config tab.
#Set Variables
Setting a variable triggers an app restart.
Go to Config → Add Variable. Enter the key and value, click Save.
bash
wokku config:set my-app DATABASE_URL=postgres://user:pass@host/db
wokku config:set my-app REDIS_URL=redis://host:6379 SECRET_KEY=abc123
bash
curl -X PUT https://wokku.dev/api/v1/apps/my-app/config \
-H "Authorization: Bearer $TOKEN" \
-d '{"DATABASE_URL": "postgres://user:pass@host/db"}'
Ask Claude: “Set DATABASE_URL on my-app to postgres://user:pass@host/db”
Tap your app → Config → + to add a variable.
#Remove Variables
Go to Config, click the delete icon next to the variable.
bash
wokku config:unset my-app LEGACY_KEY OLD_SECRET
bash
curl -X DELETE https://wokku.dev/api/v1/apps/my-app/config \
-H "Authorization: Bearer $TOKEN" \
-d '{"keys": ["LEGACY_KEY"]}'
Ask Claude: “Remove the LEGACY_KEY env var from my-app”
Tap your app → Config → swipe to delete.
#Common Variables
| Variable | Description |
|---|---|
DATABASE_URL |
Auto-set when you link a database |
REDIS_URL |
Auto-set when you link Redis |
SECRET_KEY_BASE |
Rails secret key |
NODE_ENV |
Node.js environment |
PORT |
Set automatically by Dokku |