Promptles
DevOps & Deployment

Environment Variable

beginner

Definition

A setting handed to a program from the outside, instead of being baked into the code. It lets the same program behave differently depending on where it's running: for example, talking to a test database while you're developing and the real one in production.

In the wild

A weather app reads its API key from an environment variable. On the developer's laptop, the variable holds a free testing key. On the live server, the same variable holds the paid production key. And the code itself never had to change.

More from DevOps & Deployment