docs: remove hardcoded alembic database url
This commit is contained in:
parent
9d718c3b73
commit
3f61f42666
|
|
@ -2,7 +2,7 @@
|
|||
script_location = migrations
|
||||
prepend_sys_path = src
|
||||
version_path_separator = os
|
||||
sqlalchemy.url = postgresql+psycopg://techlib:change-me@localhost:5432/techlib
|
||||
# sqlalchemy.url is injected from environment-driven project config in migrations/env.py
|
||||
|
||||
[loggers]
|
||||
keys = root,sqlalchemy,alembic
|
||||
|
|
|
|||
|
|
@ -89,6 +89,7 @@ Run Alembic from the project virtual environment, not from the system Python ins
|
|||
If you are on the deployment host, activate `/opt/techlib_mcpserver/.venv` first or call `/opt/techlib_mcpserver/.venv/bin/alembic` directly.
|
||||
Run it from the repository root so `alembic.ini` is visible, or pass the config
|
||||
explicitly with `-c /path/to/repo/alembic.ini`.
|
||||
The Alembic config file must not hardcode live credentials; `migrations/env.py` builds the connection URL from the current environment.
|
||||
|
||||
Recommended settings for migration runs:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue