Documentation
¶
Overview ¶
Command deploy-gate refuses a deployment whose migration plan looks unsafe, before anything is applied.
Plan takes no advisory lock, writes nothing and needs no DDL privileges, so this is safe to run from CI against production with a read-only role.
export DATABASE_URL="postgres://postgres:postgres@localhost:5433/postgres?sslmode=disable" go run ./examples/deploy-gate
Exits non-zero when the deployment should not proceed.
Click to show internal directories.
Click to hide internal directories.