any-env-and-bind-address #58
1 changed files with 0 additions and 2 deletions
|
@ -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
|
||||
raise ConfigError(f'Error: Invalid environment: {env}')
|
||||
|
||||
config_path: str = f'config_{env}.ini'
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue
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