fix: db-tool: NO_TTY

This commit is contained in:
2026-05-03 15:35:22 +00:00
parent 1aaf21e9c0
commit 66722bd8a4
3 changed files with 22 additions and 3 deletions

View File

@@ -35,6 +35,7 @@ These variables must be set for `db-tool` to function.
| `HECTIC_DOTENV_FILE` | (unset) | Optional dotenv file. When set and readable, `database hydrate` passes its contents to `hectic.load_secrets_from_env(...)` after applying the bundle. Falls back to `${LOCAL_DIR}/.env.${ENVIRONMENT}` when unset. |
| `PATCH_LOG` | (stdout) | Path to log the output of database patches. |
| `HYDRATE_LOG` | (stdout) | Path to log the output of database hydration. |
| `NO_TTY` | `0` | Set to `1` to redirect `pg_ctl` stdout/stderr to `/dev/null`. Prevents hanging in non-interactive environments (e.g., CI, agents) where open file descriptors from background PostgreSQL processes keep the parent session alive. |
## Postgres Package Override