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.

  1. Open your application.
  2. Click Environment Variables.
  3. Click Add, enter a key and value, and mark it as a secret when the value should stay hidden in the UI.
  4. Save the variable.

Project-level variables

Share common config across apps in the same project.

  1. Open the project.
  2. Open the Variables tab, then Manage Variables.
  3. 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 startedCreate 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 hostingFree hosting for Node.js, Python, .NET, Java, React, Angular, Next.js, Vue, PHP, and Docker apps.
  • Free deployment platformFree deployment platform to deploy apps from Git — builds, HTTPS, domains, and auto-deploy.
  • Deploy from GitHubConnect 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 & HTTPSAttach your own domain, point DNS, and serve your app over automatic HTTPS.
  • Auto-deploy on pushEnable auto-deploy so pushes to your selected branch build and deploy automatically.
  • Build & deploy logsWatch real-time build and deployment logs to troubleshoot releases on HostKB Cloud.
  • App sizes & scalingChoose the right application size for CPU and memory, then upgrade as your workload grows.