Spaces:
Sleeping
Sleeping
Dhruva P Gowda commited on
Commit ·
196bcb1
1
Parent(s): 8d49753
Rename project from PharmaShield to ShockMap
Browse files- backend/app/main.py +4 -4
- frontend/src/components/Layout.jsx +1 -1
- render.yaml +1 -1
backend/app/main.py
CHANGED
|
@@ -37,9 +37,9 @@ LIVE_SHOCK_PATHS = (
|
|
| 37 |
)
|
| 38 |
|
| 39 |
app = FastAPI(
|
| 40 |
-
title="
|
| 41 |
version="1.0.0",
|
| 42 |
-
description="National
|
| 43 |
docs_url="/docs",
|
| 44 |
redoc_url=None
|
| 45 |
)
|
|
@@ -142,7 +142,7 @@ def get_health_status():
|
|
| 142 |
@app.on_event("startup")
|
| 143 |
async def startup_event():
|
| 144 |
"""Initializes system services and loads data on startup."""
|
| 145 |
-
logger.info("
|
| 146 |
|
| 147 |
# Load Data
|
| 148 |
dl = get_data_loader()
|
|
@@ -188,7 +188,7 @@ async def startup_event():
|
|
| 188 |
except Exception as e:
|
| 189 |
logger.warning(f"Shock detector could not start (non-fatal): {e}")
|
| 190 |
|
| 191 |
-
logger.info("
|
| 192 |
|
| 193 |
@app.exception_handler(Exception)
|
| 194 |
async def global_exception_handler(request: Request, exc: Exception):
|
|
|
|
| 37 |
)
|
| 38 |
|
| 39 |
app = FastAPI(
|
| 40 |
+
title="ShockMap API",
|
| 41 |
version="1.0.0",
|
| 42 |
+
description="National Supply Chain Security Intelligence",
|
| 43 |
docs_url="/docs",
|
| 44 |
redoc_url=None
|
| 45 |
)
|
|
|
|
| 142 |
@app.on_event("startup")
|
| 143 |
async def startup_event():
|
| 144 |
"""Initializes system services and loads data on startup."""
|
| 145 |
+
logger.info("ShockMap starting...")
|
| 146 |
|
| 147 |
# Load Data
|
| 148 |
dl = get_data_loader()
|
|
|
|
| 188 |
except Exception as e:
|
| 189 |
logger.warning(f"Shock detector could not start (non-fatal): {e}")
|
| 190 |
|
| 191 |
+
logger.info("ShockMap startup sequence complete.")
|
| 192 |
|
| 193 |
@app.exception_handler(Exception)
|
| 194 |
async def global_exception_handler(request: Request, exc: Exception):
|
frontend/src/components/Layout.jsx
CHANGED
|
@@ -21,7 +21,7 @@ export default function Layout() {
|
|
| 21 |
<div className="w-8 h-8 rounded-lg bg-primary/20 border border-primary/40 flex items-center justify-center">
|
| 22 |
<Shield className="w-4 h-4 text-primary" />
|
| 23 |
</div>
|
| 24 |
-
<span className="font-semibold text-sm tracking-wide">
|
| 25 |
</div>
|
| 26 |
|
| 27 |
<nav className="flex-1 py-4 space-y-0.5 px-2">
|
|
|
|
| 21 |
<div className="w-8 h-8 rounded-lg bg-primary/20 border border-primary/40 flex items-center justify-center">
|
| 22 |
<Shield className="w-4 h-4 text-primary" />
|
| 23 |
</div>
|
| 24 |
+
<span className="font-semibold text-sm tracking-wide">ShockMap</span>
|
| 25 |
</div>
|
| 26 |
|
| 27 |
<nav className="flex-1 py-4 space-y-0.5 px-2">
|
render.yaml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
services:
|
| 2 |
- type: web
|
| 3 |
-
name:
|
| 4 |
env: docker
|
| 5 |
region: singapore
|
| 6 |
plan: free
|
|
|
|
| 1 |
services:
|
| 2 |
- type: web
|
| 3 |
+
name: shockmap-api
|
| 4 |
env: docker
|
| 5 |
region: singapore
|
| 6 |
plan: free
|