Environment Variables
Set configuration values for your services without hardcoding them in your code.
Setting Variables
Section titled “Setting Variables”Via Dashboard
Section titled “Via Dashboard”- Go to your service → Variables tab
- Enter the key and value
- Toggle Secret if the value should be hidden
- Click Add
Via CLI
Section titled “Via CLI”zevcloud env set <serviceId> DATABASE_URL postgres://...zevcloud env set <serviceId> API_SECRET sk_live_... --secretVia API
Section titled “Via API”curl -X POST https://api.zevcloud.net/v1/services/<serviceId>/env \ -H "Authorization: Bearer sk_live_..." \ -H "Content-Type: application/json" \ -d '{"key": "DATABASE_URL", "value": "postgres://...", "isSecret": false}'Secret Variables
Section titled “Secret Variables”Variables marked as secret are:
- Encrypted at rest using AES-256
- Hidden in the dashboard (shown as
••••••••) - Hidden in CLI output
- Available to your application at runtime as normal environment variables
Redeploy After Changes
Section titled “Redeploy After Changes”For web applications, environment variable changes take effect on the next deployment. Click Redeploy after adding or changing variables.
For WordPress and static sites, changes take effect immediately (the container reads them on restart).
System Variables
Section titled “System Variables”ZevCloud automatically sets these variables for every service:
| Variable | Description |
|---|---|
PORT | The port your app should listen on |
NODE_ENV | Set to production |