Static Site
Projects
Environments

Deployment Environments

You can create environments to control continuous deployment for your project. Environments allow you to deploy branches from your repository on separate protocols. By default, Spheron creates two deployment environments for your project: Production & Development.

Production Environment

The primary branch of your repository is deployed on IPFS from the production environment by default. It looks for the central/master branch of your repository and will select the primary branch if none are available.

Development Environment

All the branches, except the primary, are deployed on IPFS from the development environment by default. Branches will be removed from this environment if used in any other environment.

Custom Environments

Spheron allows you to create more deployment environments on separate protocols and add specific branches to them. To create a custom environment:

  1. Go to the Settings tab of your project.
  2. Select Deployment Environments from the sidebar.
  3. Add name, protocol, and branch, and Click "Save."

Benefits of creating Custom Environments

  1. If your project is deployed on IPFS and you want to move to Filecoin, you can deploy a test environment to Filecoin while maintaining your main branch on IPFS.
  2. Spheron automatically updates the domain attached to an environment whenever you make any changes.
  3. You can use separate environment variables for different environments based on requirements.
HTTPSEnv Variables