Environment Variables

Environment variables store configuration values that you'd rather not store in your codebase. Codesphere allows setting Env vars from the UI.

December 14, 2023 1 Min Read
Environment Variables
Environment Variables

Codesphere

From everyone in the Codesphere Team:)

Codesphere makes working with Environment Variables super easy. You can add, edit and manage your Environment Variables from the interface.

Get started with Environment Variables

Environment Variables are connected to a specific workspace. That allows you to set different Variables for example in staging and production environments. Navigate to the workspace you want to add or modify Environment Variables and click on Setup. There you will find the Environment Variables tab.

Working with Environment Variables

In this window you can set, view and edit all your environment variables. Because Environment Variables often contain secret keys, by default the values are concealed by stars, you can reveal the value via the eye icon.

And youโ€™re done - itโ€™s that simple. The Environment Variables you set here will be available from the terminal and can be fetched from scripts (i.e. os.environ.get in Python) from now on.Remember that they are specific to the workspace they are created in, so when you manually create a replica, you will need to copy these variables over as well.

About the Author

Environment Variables

Codesphere

From everyone in the Codesphere Team:)

We are building the next generation of Cloud, combining Infrastructure and IDE in one place, enabling a seamless DevEx and eliminating the need for DevOps specialists.

More Posts

Deploying Landscapes on Codesphere

Deploying Landscapes on Codesphere

Learn how to deploy and run multiple services that can independently scale vertically and horizontally within a single workspace. Suitable for hosting entire application landscapes.

Monitoring & Alerting

Monitoring & Alerting

Learn how to access Codesphere's built in resource monitoring and check the uptime of your applications.

Path-Based Routing

Path-Based Routing

Learn how to connect multiple independent applications to a single domain by associating different paths with distinct workspaces