Sdm0 commited on
Commit
39ab3c8
·
verified ·
1 Parent(s): 0990565

feat: configure durable checkpoint path

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -62,7 +62,9 @@ logging.basicConfig(
62
  )
63
  logger = logging.getLogger(__name__)
64
 
65
- DB_PATH = "checkpoints.db"
 
 
66
 
67
  SEVERITY_COLORS = {
68
  "critical": "#dc2626",
 
62
  )
63
  logger = logging.getLogger(__name__)
64
 
65
+ # Set this to a mounted volume or durable filesystem path in hosted
66
+ # deployments. The default keeps local development self-contained.
67
+ DB_PATH = os.environ.get("OPENCODEREVIEW_DB_PATH", "checkpoints.db")
68
 
69
  SEVERITY_COLORS = {
70
  "critical": "#dc2626",