Create an environment
Last updated
Last updated
When you create a new Release application, Release automatically creates your first ephemeral environment. To view an application's environments or to create new environments, navigate to the application's Environments tab.
Free accounts are limited to two environments at a time. If you're on a free account and already have two environments, you'll need to delete one before proceeding with this guide. To create more than two environments, upgrade your account.
On the Environments page, click the Create environment button. This takes you to the create environment page where you can configure your new environment.
Let's take a look at each of these options:
Select an environment type: Choose whether the new environment should be ephemeral (lasting for a limited time – seven days by default) or permanent (lasting until manually destroyed). To learn more about ephemeral and permanent environments, see our page about environment expiration. If you're creating a permanent environment, enter an environment name. Release will convert this name to lowercase and remove spaces. Ephemeral environments get an autogenerated name.
Select a branch from your application's repository to deploy to your new environment.
Select if you want the environment to deploy automatically.
Select the cluster for this environment where this environment will live.
Select any other applications that you want to import into this environment.
Under Override Build Images, you can enter specific Docker images to deploy to your services. By selecting a specific Docker image for a service, the image for this service will not be updated when you push new code to your branch. By default, Release will pull the latest image for each service.
Lastly, click Create environment.
Release will now create your new environment and redirect you to a page that shows you deployment progress in real time.
Release goes through four stages for each new environment.
During the build stage, Release pulls a branch from your application's repository, then runs docker build
for each service. After building new Docker images, Release pushes the images to a private container registry.
Next, Release sets up your new environment by creating the required nodes and other resources, setting quotas, pulling Docker images, and deploying containers, and starting services with docker run
.
Release then sets up a health checker to monitor your deployed services.
Finally, Release routes network traffic to your new environment by updating a routing table for your application.
Your environment should now be deployed and ready to use.
To view the environment's details page, visit your application's Environments page and click on the new environment you created.
From the Environment Details page, you can view URLs for your services, change settings for your environment, and see details about running instances.
Test it out: To see how Release builds and redeploys your application, push a code update to your repository in the branch tracked by this environment, then visit the Deployments tab in Release.