mix client_utils.hosting.install (client_utils v0.7.0)

View Source

Installs 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 Kamal destination config/deploy.<env>.yml for each environment
  • .kamal/secrets, reading from OpenBao, and .kamal/secrets-common
  • the /health endpoint: its controller and its route
  • 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 (default uat,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.

Functions

owned(igniter, pin)

Writes every file client_utils owns, pinned to pin, replacing what is there and leaving an equal file unchanged. The upgrader is this alone.