Add An Environment¶
One of the concerns for the Cascade system is the marshalling of application layer code, assets, databases and links. In order to accomplish moving these items around a bespoke hosting solution, there are a few main concepts to understand: Deployment Environment and Deployment Group.
This guide assumes some knowledge of Cascade terminology, before proceeding read more about Deployment Targets, Deployment Groups, and Deployment Environments in our FAQ on this subject.
Prerequisites¶
You will need to log into Cascade as a special kind of administrator to add Environments. In order to check your permissions, please navigate to the Environments tab in the administration section of Cascade, you should see a display similar to below.
Take note of the + icon next to the Environments header. If you do not see the + icon, your account does not have permission to add Environments.
Add a New Environment¶
- Navigate to to the Environments Tab in the Administration dashboard by clicking the Administration header and then the Environments tab.
- Ensure you have the appropriate permissions to create environments by looking for the + symbol next to the Environments header as shown above.
- Click the + icon to open the add new environment dialogue. Note that entry box will show you the names of existing environments, you may still type the name of your new one.
- After filling in your chosen name, click the resulting pop-up option displayed as ” Create [your name]”.
- Click the create button at the bottom right of the form.
Attach Deployment Targets to Environment¶
After your environment is created, you must decide which Deployment Targets and Deployment Groups are associated with it. For guidance on how to add deployment groups, see the Add A Deployment Group guide
- Click on the gear icon next to each deployment group and decide what targets are enabled by clicking a check-box.
- Click the save button.
- Repeat for each Deployment Group you wish to associate.
- Optional: You may also decide to disassociate a Deployment Group by clicking the trash can icon for that group.
Update an Existing Environment¶
- Navigate to to the Environments Tab in the Administration dashboard.
- Select the Environment Tab that is going to edited.
- Click the Gear in the desired Deployment Group.
- The new Deployment Target should be listed. If not, ensure that the Deployment Target exists again.
- Select the desired Deployment Target in the drop down. Search in the search box if needed.
- Click the Save button.
The selected Deployment Target should show up in the Deployment Group area.
Add an Environment to a Project¶
- Navigate back to the project you would like to modify via the list page.
- Click the project title or, on the right side of the row, click on the vertical ellipsis and then Edit.
- Click on the Environments tab at the left side project display.
- While on the Environments tab, the new Environment name will be available down at the bottom of the list, click the + to add it and then drag and drop to order.
- Click the Code tab at the side of the left side project display.
- While on the code tab, ensure the newly added Environment is set to track the branch you would expect. For example, if you’re adding an Environment called Feature and the project has a feature branch, then the branch name should be feature.
- Click Save at the top of the page to finish.