Logo

Command Palette

Search for a command to run...

Enabling continuous deployment

Overview

Cloud 66 offers several ways to achieve continuous deployment for your applications. These methods all use triggers (such as commits to git repositories) to initiate the deployment process for your apps. This doc explores and compares each of the options.

MethodProsCons
Cloud 66 GitHub applicationVery quick & easy, no manual set up requiredLimited to GitHub, less configurable and extensible, no access to deployment profiles
Redeployment hooksCan be used on non-Github repos, can use deployment profiles, more extensible (for example can be used with a continuous integration platform)Requires some manual set up, lacks some more advanced deployment features
Cloud 66 Toolbelt (or API)The most customisable option with full access to all deployment features. Very flexible and extensible.Requires some engineering work and careful configuration

Enabling automated continuous deployment

This method is only available if you have connected your Cloud 66 account to GitHub by installing the Cloud 66 GitHub account. If you have not done this, please follow our guide.

you can enable (and disable) continuous deployment in the Cloud 66 Dashboard:

  1. Log into your Cloud 66 Dashboard and click on your app
  2. Click on ⚙️ Settings in the left-hand nav
  3. Click on Deployment in the sub nav
  4. Check the box next to Continuous Deployment

You can also enable (and disable) continuous deployment via the Cloud 66 Toolbelt:

To do this modify your application settings via the toolbelt and set continuous.deploy to true. For example:

$ cx settings set -s my_app_name continuous.deploy true

Your application will now be deployed every time you commit changes to the branch of your repo which the application is set to use.

Continuous integration tests

When you enable continuous deployment (as above) your application will deploy as soon as we detect an update to its repository. However, if you have tests or other integration tasks that run on GitHub (or that GitHub is aware of), you can set your application to wait for these to pass before deploying.

To do so, check the box next to Wait for continuous integration tests to pass before deploying. (This option only appears once you have enabled continuous deployment - see above).

Continuous deployment via redeployment hooks

Redeployment hooks are unique (per application) webhooks that trigger a deployment process for their related application. They will work with any system or service that accepts webhooks and can also be invoked manually, or via shell scripts. They can call deployment profiles, and their payloads can contain information on the branch being deployed.

Read our guide to redeployment hooks for more information on setting them up.

Continuous deployment via the Cloud 66 Toolbelt

The Cloud 66 Toolbelt (cx) gives you full control over your applications, including settings not available via the Dashboard.

The redeploy command can be used to trigger the deployment of any existing application.

The cx redeploy command

You can find more info about Toolbelt commands in the full reference guide.

Via the Cloud 66 API

You can also use the deployments method in the Cloud API to trigger deployments. Read the API guide for more info.