fix: default STATE_DIR to ~/.hermes/webui instead of webui-mvp (#72)
The previous default pointed to 'webui-mvp' which is the internal development repo name and meaningless to anyone deploying the public repo. Changed to the generic '~/.hermes/webui' which is a sensible default for any deployment. The state dir remains fully overridable via HERMES_WEBUI_STATE_DIR for anyone who wants to run multiple instances side by side. Co-authored-by: Nathan Esquenazi <nesquena@gmail.com>
This commit is contained in:
@@ -31,7 +31,7 @@ PORT = int(os.getenv('HERMES_WEBUI_PORT', '8787'))
|
|||||||
# ── State directory (env-overridable, never inside repo) ──────────────────────
|
# ── State directory (env-overridable, never inside repo) ──────────────────────
|
||||||
STATE_DIR = Path(os.getenv(
|
STATE_DIR = Path(os.getenv(
|
||||||
'HERMES_WEBUI_STATE_DIR',
|
'HERMES_WEBUI_STATE_DIR',
|
||||||
str(HOME / '.hermes' / 'webui-mvp')
|
str(HOME / '.hermes' / 'webui')
|
||||||
)).expanduser().resolve()
|
)).expanduser().resolve()
|
||||||
|
|
||||||
SESSION_DIR = STATE_DIR / 'sessions'
|
SESSION_DIR = STATE_DIR / 'sessions'
|
||||||
|
|||||||
Reference in New Issue
Block a user