ClientUtils.Hosting (client_utils v0.7.3)
View SourceCodeMySpec hosting's pieces of a Phoenix app.
mix client_utils.hosting.install writes them; mix client_utils.hosting.upgrade
bumps the workflow callers' pin and rewrites the files client_utils owns.
client_utils owns the four workflow callers, .kamal/secrets,
.kamal/secrets-common (what a destination deploy resolves its secrets
from), the release scripts rel/overlays/bin/server and
rel/overlays/bin/migrate, and the health controller. The rest the
installer writes once and leaves to the app: the Dockerfile, Kamal's base
config and its destinations, the /health route, the release module and
the OTel config in runtime.exs.
Nothing here needs Igniter; what does is in the two tasks.
Summary
Functions
A caller's content, pinned to pin.
The names of the thin workflow callers.
The OTLP endpoint every app exports to.
What mix client_utils.hosting.<task> says in an app with no igniter.
The workflows-v<N> tag this version pins its callers to.
Renders the template at path under priv/templates/hosting with assigns.
The release scripts, which must be executable.
The toolchain a new Dockerfile builds with: :elixir, :otp, :image_date.
Functions
A caller's content, pinned to pin.
The names of the thin workflow callers.
The OTLP endpoint every app exports to.
What mix client_utils.hosting.<task> says in an app with no igniter.
The workflows-v<N> tag this version pins its callers to.
Renders the template at path under priv/templates/hosting with assigns.
The release scripts, which must be executable.
The toolchain a new Dockerfile builds with: :elixir, :otp, :image_date.