If you are using Direct Docker Image Deploy, you’ll need a Companion Git Repository to use .aptible.yml

In addition to Configuration variables read by Enclave, Enclave also lets you configure your Apps through a .aptible.yml file found at the root of your repository.

This file should be a yaml file containing any of the following configuration keys:


before_release should be set to a list, e.g.:

  - command1
  - command2

The commands listed under before_release will run when you deploy your app, either via a git push (for Dockerfile Deploy) or using aptible deploy (for Direct Docker Image Deploy).

However, they will not run when you execute aptible config:set, aptible restart, etc.

As such, before_release is ideal to e.g. automatically run database migrations.


There is a 30-minute timeout on before_release tasks. If you need to run something that takes longer, consider using Ephemeral SSH Sessions.