Skip to content

Environments overview ​

Environments deploy different branches of your repository in isolation, so you can test changes before they go live.

Production environment ​

The production environment is the live version of your application. Preview environments are for testing changes without affecting it or its users.

The production environment is automatically assigned "production" domains, while preview environments can only have domains individually assigned to them.

Using the "Promote to Production" button on an environment in the project overview, you can change which environment is considered the production environment.

Manage environments ​

Create environments ​

  1. Navigate to the project you want to create a new environment for.
  2. Click on the "Create environment" button.
  3. Enter a name for your environment in the "Name" field.
  4. Select a deployment strategy for your environment:
    • Manual: You can manually deploy changes to the environment using the "New Deployment" button in the environment dashboard.
    • Branch: The environment will automatically deploy whenever a new commit is pushed to a specific branch in the project's repository.
    • Tag: The environment will automatically deploy when a new tag is pushed to the project's repository.
  5. Depending on the deployment strategy you choose, you may need to enter additional settings, such as the branch name.
  6. Click on the "Create Environment" button to create your new environment.
The Create Environment form for a staging environment deploying the develop branch

Modify existing environments ​

  1. Open the project of the environment.
  2. Click on the environment to open it, and then click on the "Settings" tab.
The Settings tab of an environment, with its General settings
  1. In the "General" settings, change the name or the access control strictness and click "Save".
  2. To change the deployment strategy, select it in the "Automatic deployment" settings.
  3. Click "Save" in the "Automatic deployment" settings.

Deleting environments ​

  1. Open the project of the environment that you want to delete.
  2. Click on the environment that you want to delete.
  3. Navigate to the "Settings" tab.
  4. Scroll down to the "Delete Environment" section.
  5. Click the "Delete" button.

This permanently removes all data of the environment, including its deployments and logs, so export any important data beforehand.

The production environment can't be deleted. To delete it, first promote another environment to production.

Use environments ​

Environment variables ​

Environment variables configure the build and the running application of your project per deploy context.

Access control ​

You can restrict who can access the environments of your project:

If you use both, the Access Control Strictness decides whether visitors have to pass both checks (Strict) or just one (Relaxed).