arkaos 2.4.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/VERSION +1 -1
- package/package.json +1 -1
- package/pyproject.toml +1 -1
- package/scripts/start-dashboard.sh +23 -7
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.4.
|
|
1
|
+
2.4.1
|
package/package.json
CHANGED
package/pyproject.toml
CHANGED
|
@@ -36,17 +36,33 @@ echo " ArkaOS Dashboard"
|
|
|
36
36
|
echo " ─────────────────"
|
|
37
37
|
|
|
38
38
|
# ── Start FastAPI backend ──
|
|
39
|
+
API_LOG="$HOME/.arkaos/api.log"
|
|
39
40
|
echo " Starting API on :${API_PORT}..."
|
|
40
|
-
ARKAOS_ROOT="$ARKAOS_ROOT" python3 "${ARKAOS_ROOT}/scripts/dashboard-api.py" --port "$API_PORT"
|
|
41
|
+
ARKAOS_ROOT="$ARKAOS_ROOT" python3 "${ARKAOS_ROOT}/scripts/dashboard-api.py" --port "$API_PORT" > "$API_LOG" 2>&1 &
|
|
41
42
|
API_PID=$!
|
|
42
|
-
sleep 2
|
|
43
43
|
|
|
44
|
-
#
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
# Wait for API with health check (up to 10 seconds)
|
|
45
|
+
API_READY=false
|
|
46
|
+
for i in $(seq 1 20); do
|
|
47
|
+
sleep 0.5
|
|
48
|
+
if ! kill -0 "$API_PID" 2>/dev/null; then
|
|
49
|
+
break
|
|
50
|
+
fi
|
|
51
|
+
if curl -s "http://localhost:${API_PORT}/api/overview" >/dev/null 2>&1; then
|
|
52
|
+
API_READY=true
|
|
53
|
+
break
|
|
54
|
+
fi
|
|
55
|
+
done
|
|
56
|
+
|
|
57
|
+
if [ "$API_READY" = true ]; then
|
|
58
|
+
echo " ✓ API: http://localhost:${API_PORT}"
|
|
59
|
+
else
|
|
60
|
+
echo " ⚠ API may still be starting (check log: $API_LOG)"
|
|
61
|
+
if [ -f "$API_LOG" ]; then
|
|
62
|
+
echo " Last error: $(tail -3 "$API_LOG" | head -1)"
|
|
63
|
+
fi
|
|
64
|
+
# Don't exit — API might still be loading, continue with dashboard
|
|
48
65
|
fi
|
|
49
|
-
echo " ✓ API: http://localhost:${API_PORT}"
|
|
50
66
|
|
|
51
67
|
# ── Start Nuxt frontend ──
|
|
52
68
|
UI_PID=""
|