Docs/Environment variables
Environment variables
Store API keys, database URLs, and feature flags as environment variables — then deploy so the running app picks them up.
App-level variables
Best for settings that belong to a single application.
- Open your application.
- Click Environment Variables.
- Click Add, enter a key and value, and mark it as a secret when the value should stay hidden in the UI.
- Save the variable.
Project-level variables
Share common config across apps in the same project.
- Open the project.
- Open the Variables tab, then Manage Variables.
- Add keys that multiple apps in the project should inherit.
Deploy after changing variables
Important
Saving a variable does not update the live app by itself. Open Deployments and click Deploy so the running workload receives the new values.
If you also changed code in Git, run a successful Build first (or rely on auto-deploy), then deploy.
Related guides
- Getting started — Create projects and apps, set environment variables, then build and deploy from the UI.
- What is HostKB Cloud? — HostKB Cloud is a free hosting and deployment platform — deploy apps from Git with HTTPS and logs.
- Free app hosting — Free hosting for Node.js, Python, .NET, Java, React, Angular, Next.js, Vue, PHP, and Docker apps.
- Free deployment platform — Free deployment platform to deploy apps from Git — builds, HTTPS, domains, and auto-deploy.
- Deploy from GitHub — Connect GitHub, pick a repository and branch, then build and deploy your app.
- Sample apps (download) — Download Node.js, .NET, or Python sample ZIPs, push to your Git repo, and try a free deploy.
- Custom domains & HTTPS — Attach your own domain, point DNS, and serve your app over automatic HTTPS.
- Auto-deploy on push — Enable auto-deploy so pushes to your selected branch build and deploy automatically.
- Build & deploy logs — Watch real-time build and deployment logs to troubleshoot releases on HostKB Cloud.
- App sizes & scaling — Choose the right application size for CPU and memory, then upgrade as your workload grows.