Skip to content

Add pre and post app boot hooks#1395

Merged
djmb merged 1 commit intomainfrom
app-boot-hooks
Feb 3, 2025
Merged

Add pre and post app boot hooks#1395
djmb merged 1 commit intomainfrom
app-boot-hooks

Conversation

@djmb
Copy link
Copy Markdown
Collaborator

@djmb djmb commented Feb 3, 2025

Add two new hooks pre-app-boot and post-app-boot. They are analagous to the pre/post proxy reboot hooks.

If the boot strategy deploys in groups, then the hooks are called once per group of hosts and KAMAL_HOSTS contains a comma delimited list of the hosts in that group.

If all hosts are deployed to at once, then they are called once with KAMAL_HOSTS containing all the hosts.

It is possible to have pauses between groups of hosts in the boot config, where this is the case the pause happens after the post-app-boot hook is called.

@djmb djmb force-pushed the app-boot-hooks branch 3 times, most recently from 73534c3 to 079a910 Compare February 3, 2025 15:41
Add two new hooks pre-app-boot and post-app-boot. They are analagous
to the pre/post proxy reboot hooks.

If the boot strategy deploys in groups, then the hooks are called once
per group of hosts and `KAMAL_HOSTS` contains a comma delimited list of
the hosts in that group.

If all hosts are deployed to at once, then they are called once with
`KAMAL_HOSTS` containing all the hosts.

It is possible to have pauses between groups of hosts in the boot config,
where this is the case the pause happens after the post-app-boot hook is
called.
@djmb djmb merged commit dba3a11 into main Feb 3, 2025
10 checks passed
@djmb djmb deleted the app-boot-hooks branch February 3, 2025 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant