The daemon_client unconditionally overwrites HINDSIGHT_API_DATABASE_URL with pg0://hindsight-embed, preventing users from using an external PostgreSQL instance. This is a problem for VPS deployments running as root, where pg0's embedded PostgreSQL fails with 'initdb: cannot be run as root'. This change checks if the env var is already set before defaulting to pg0, allowing users to point to an external PostgreSQL while preserving the default embedded behavior. Fixes #261 |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| cli.py | ||
| daemon_client.py | ||