mix client_utils.hosting.install (client_utils v0.7.3)
View SourceInstalls CodeMySpec hosting's pieces into a Phoenix app
Writes:
- the thin callers
.github/workflows/{provision-environment,deploy,backup,restore}.yml, pinned to this version's workflows-v<N> tag - a
Dockerfileand Kamal's baseconfig/deploy.yml, where the app has none - a Kamal destination
config/deploy.<env>.ymlfor each environment .kamal/secrets, reading from OpenBao, and.kamal/secrets-common- the
/healthendpoint: its controller, its route, and its exclusion fromforce_sslinconfig/prod.exs - the release scripts
rel/overlays/bin/{server,migrate}and the release module - the OTel exporter config in
config/runtime.exs, pointing at our collector
A second run changes nothing. Needs igniter among the app's dependencies.
Example
mix client_utils.hosting.install --environments uat,prod
Options
--environments- the Kamal destinations to write (defaultuat,prod)
Summary
Functions
Writes every file client_utils owns, pinned to pin, replacing what is
there and leaving an equal file unchanged. The upgrader is this alone.