Spaces:
Running
Running
feat: configure durable checkpoint path
Browse files
app.py
CHANGED
|
@@ -62,7 +62,9 @@ logging.basicConfig(
|
|
| 62 |
)
|
| 63 |
logger = logging.getLogger(__name__)
|
| 64 |
|
| 65 |
-
|
|
|
|
|
|
|
| 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",
|