Merge de7917e29c into 2cc9f8acb3
This commit is contained in:
commit
939e7672de
|
|
@ -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
|
./target/release/sensing-server --source wifi --http-port 3000 --ws-port 3001 --tick-ms 500
|
||||||
|
|
||||||
# Docker (requires --network host on Windows)
|
# 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
|
docker run --network host ruvnet/wifi-densepose:latest --source wifi --tick-ms 500
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5300,17 +5300,36 @@ fn coalesce_ui_path(initial: std::path::PathBuf) -> std::path::PathBuf {
|
||||||
if initial.is_dir() {
|
if initial.is_dir() {
|
||||||
return initial;
|
return initial;
|
||||||
}
|
}
|
||||||
for rel in &["../ui", "./ui", "../../ui"] {
|
// Try relative to CWD
|
||||||
let p = std::path::PathBuf::from(rel);
|
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() {
|
if p.is_dir() {
|
||||||
warn!(
|
warn!(
|
||||||
"UI path {} not found; using {} (set --ui-path explicitly if wrong)",
|
"UI path {} not found; using {} (set --ui-path explicitly if wrong)",
|
||||||
initial.display(),
|
initial.display(),
|
||||||
p.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
|
initial
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue