any-env-and-bind-address #58

Merged
moon merged 7 commits from any-env-and-bind-address into dev 2025-06-13 14:54:28 -07:00
Showing only changes of commit fdf21b3f5f - Show all commits

View file

@ -13,8 +13,6 @@ def get_config_file() -> str:
env: str | None = environ.get('KEMOVERSE_ENV')
if not env:
raise ConfigError('Error: KEMOVERSE_ENV is unset')
if not (env in ['prod', 'dev']):
VD15 marked this conversation as resolved Outdated
Outdated
Review

We might want to remove this check from the database migration script as well, I think we have an identical one there: https://git.waifuism.life/waifu/kemoverse/src/branch/any-env-and-bind-address/setup_db.py#L60

We might want to remove this check from the database migration script as well, I think we have an identical one there: https://git.waifuism.life/waifu/kemoverse/src/branch/any-env-and-bind-address/setup_db.py#L60
raise ConfigError(f'Error: Invalid environment: {env}')
config_path: str = f'config_{env}.ini'