Deploy
View SourceDockerfile builds a release (mix phx.gen.release --docker). Required in prod
(the release refuses to boot without them):
| Variable | What |
|---|---|
SECRET_KEY_BASE | signs cookies and tokens — mix phx.gen.secret |
PHX_HOST | the public hostname; every absolute URL (feeds, mail, API) is built from it |
WRAITH_VAULT_KEY | encrypts stored secrets — mix phx.gen.secret; changing it makes them unreadable |
Plus a store (WRAITH_STORE=dynamo + WRAITH_TABLE, WRAITH_STORE=postgres +
DATABASE_URL, or WRAITH_STORE=dsql + DSQL_ENDPOINT), AWS_REGION, and a
task role allowed to read/write the table (and, for the studio,
lambda:*MicroVM* plus the journal bucket). Set TRUSTED_PROXIES=1 behind a
single load balancer. Run mix wraith.table once per environment. Everything
else is in .env.example.