dflow apps:env:set
Stage one non-secret variable. Run changes:deploy to apply it.
This sets one environment variable that is not a secret. Before the first deploy it only stores the value and prints status stored. After an image exists, it stages the change. Run dflow changes:deploy to apply it. With --trust-skip the change applies at once and the command waits for the deploy unless you pass --wait=false.
dflow apps:env:set APP KEY=VALUEFlags
--trust-skip applies the change at once instead of staging it. --wait and --wait-timeout (default 5m) apply only when the change is applied at once.
What you see
Before the first deploy, the API stores the value and prints status stored. After an image exists, the command prints that the change is staged, and the deploy operation runs when you run dflow changes:deploy. With --trust-skip, the command waits for the deploy operation to finish unless --wait=false.
When it fails
A missing application exits 3. A name that starts with DFLOW_, and the names PORT and KUBERNETES_SERVICE_HOST, are reserved and exit 1.
After db:link, PostgreSQL, MySQL, and MongoDB keep DFLOW_DATABASE_*, including DFLOW_DATABASE_HOST, DFLOW_DATABASE_PORT, DFLOW_DATABASE_NAME, and DFLOW_DATABASE_USERNAME. Redis keeps DFLOW_REDIS_*. This command does not send those names back. Setting or changing one of them is refused.
How is this guide?
Last updated on