Each Divio project can have multiple application environments. All projects include a Test and Live environment by default. Each environment of a project is completely distinct and independent, and has its own environment variables, containers, database, media storage and other services. All environments in a project use the same Git repository, but each can use a different Git branch.
The view provides options for configuring environments (for example, setting Git branches) as well as access to useful commands for development, controls for deployment and other actions, and links to deployment and runtime logs.
The Live environment¶
The Live environment, unlike the other environments:
never sleeps (the others will shut down their containers after an idle period, to save resources)
can use multiple containers if specified in the project subscription (the others use only one container)
can be wired up to the user’s own domains
Adding and removing environments (Beta)¶
Functionality to add and remove environments is currently provided as a Beta feature, and is available only to users who have signed up for access to Beta-release features. Enable Beta features in your account settings.
The Add environment button allows you to create additional environments. For example, you might create a QA environment for in-depth testing of new functionality, or to explore development of functionality in a new branch of the codebase before it’s merged back into the main branch.
Each new environment can be based on an existing environment, or can be set up from scratch.