deployment-gotchas
Installation
SKILL.md
Deployment Gotchas
Use this skill before modifying ANY deployment or release configuration.
RULES — Follow these with no exceptions
- Use
runtime.exsfor all secrets and URLs; never hardcode secrets — useSystem.get_env!/1— see §1 & §5 - Run migrations via release commands (
bin/migrate) — see §2 - Set
PHX_HOSTandPHX_SERVER=true— see §3 - Run
mix assets.deploybefore building the release — see §4 - Add a
/healthendpoint that queries the database — see §6 - Use
config :logger, level: :infoin production — see §7 - Use Docker multi-stage builds for Elixir releases — see §4