Deployments
Environment Variables
Plain and secret variables, and the values VPSPilot sets for you.
Each application has up to 100 environment variables. They are encrypted at rest and written to a private file for the container on each deploy, so changes take effect on the next deployment.
Plain and secret variables
Keys must start with a letter or underscore and contain only letters, digits and underscores. When you edit the list, send a secret without a value to keep its stored value unchanged.
Variables VPSPilot sets
Updating through the API
http
PATCH /api/v1/applications/{app_id}{ "env": [ { "key": "NODE_ENV", "value": "production" }, { "key": "STRIPE_SECRET_KEY", "value": "sk_live_...", "secret": true }, { "key": "SESSION_SECRET", "secret": true } ]}The list replaces the whole environment. SESSION_SECRET above has no value, so its stored value is kept.