This commit is contained in:
Yahya Saqban 2026-05-29 16:02:49 +02:00 committed by GitHub
commit 939e7672de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 28 additions and 3 deletions

View File

@ -313,6 +313,12 @@ Uses `netsh wlan` to capture RSSI from nearby access points. No special hardware
./target/release/sensing-server --source wifi --http-port 3000 --ws-port 3001 --tick-ms 500
# Docker (requires --network host on Windows)
# Note: On Windows, Docker does not pass CLI args directly.
# Use either:
# docker run --network host ruvnet/wifi-densepose:latest -- --source wifi --tick-ms 500
# Or set the entrypoint:
# docker run --network host --entrypoint /app/target/release/sensing-server ruvnet/wifi-densepose:latest --source wifi --tick-ms 500
# See https://github.com/ruvnet/RuView/issues/676 for troubleshooting.
docker run --network host ruvnet/wifi-densepose:latest --source wifi --tick-ms 500
```

View File

@ -5300,17 +5300,36 @@ fn coalesce_ui_path(initial: std::path::PathBuf) -> std::path::PathBuf {
if initial.is_dir() {
return initial;
}
for rel in &["../ui", "./ui", "../../ui"] {
let p = std::path::PathBuf::from(rel);
// Try relative to CWD
let mut candidates: Vec<std::path::PathBuf> = vec![
std::path::PathBuf::from("../ui"),
std::path::PathBuf::from("./ui"),
std::path::PathBuf::from("../../ui"),
];
// Try relative to executable (handles cases where CWD != repo root)
if let Ok(exe) = std::env::current_exe() {
if let Some(exe_dir) = exe.parent() {
candidates.push(exe_dir.join("../ui"));
candidates.push(exe_dir.join("../../ui"));
}
}
for p in &candidates {
if p.is_dir() {
warn!(
"UI path {} not found; using {} (set --ui-path explicitly if wrong)",
initial.display(),
p.display()
);
return p;
return p.clone();
}
}
warn!(
"UI path {} not found. Try running from repo root or set --ui-path explicitly.",
initial.display()
);
initial
}