environment_deploy_hooks_update
Set an Environment's release phase (such as migrations) or post-deploy command.
Set an Environment’s release phase (such as migrations) or post-deploy command. Applies on the next deploy.
| Access | Changes Blossom |
| Same as | blossom environment:deploy_hooks:update |
Arguments
| Argument | Type | Description |
|---|---|---|
id |
string | Environment id. Required. |
data |
object | Commands around a deploy, as in deploy_hooks.yml. Required. |
data.release_phase |
object | Runs before new Containers start, such as migrations. |
data.post_deploy |
object | Runs after the deploy. |
Example
{"id":"environment-100","data":{"clone_url":"https://github.com/acme/shop","services":[{"name":"web","command":"web","port":3000,"publicly_exposed":true}]}}