Environment variables
Graftcode Gateway
| Variable | Values | Purpose |
|---|---|---|
GG_DEBUG | 1, TRUE | Log incoming/outgoing byte traffic to console |
GC_PROJECT_KEY | JWT string | Project Key; overrides --projectKey |
GSMU_ENDPOINT | URL | Overrides --endpoint (default https://grft.dev) |
Examples
export GG_DEBUG=1 export GC_PROJECT_KEY="eyJ..." export GSMU_ENDPOINT="https://grft.dev" ./gg ./MyLib.dll --port 8888
Windows PowerShell:
$env:GG_DEBUG = "1" $env:GC_PROJECT_KEY = "eyJ..."
Graft / Hypertube (consumer)
Graft configuration precedence includes environment variables above config files and code. Generated GraftConfig checks runtime-specific and global env vars at init.
Common pattern: set production host without code changes:
# Exact var names may vary by generated Graft runtime — prefer graftcode-config files when unsure export GRAFTCODE_CONFIG_HOST="tcp://prod-gateway:8990"
See Config file formats and GraftConfig reference.