Merge pull request 'e2e server: default port 8093' (#214) from chore/e2e-port-8093 into master
Reviewed-on: #214
This commit was merged in pull request #214.
This commit is contained in:
commit
4bb5936ec0
3 files changed
+12
-9
No files matched your search
@@ -66,7 +66,7 @@ cargo fix
|
||||
```
|
||||
|
||||
### E2E dev server
|
||||
`dev/e2e/e2e.sh up` starts an isolated instance (port 8090, own build dir, db and
|
||||
`dev/e2e/e2e.sh up` starts an isolated instance (port 8093, own build dir, db and
|
||||
synthetic fixture library) alongside any real server, for app e2e / agent UI
|
||||
testing. `reset` restores the baseline. See `dev/e2e/README.md`.
|
||||
|
||||
|
||||
+9
-6
@@ -10,14 +10,17 @@ dev/e2e/e2e.sh stop
|
||||
dev/e2e/e2e.sh check # every fixture's wall_clock + true_instant vs the manifest, /photos/exif range edges, photo versions
|
||||
```
|
||||
|
||||
Log in from the app with **server** `http://10.0.2.2:8090` (Android
|
||||
emulator) or `http://127.0.0.1:8090` (Expo web / `adb reverse tcp:8090 tcp:8090`),
|
||||
Log in from the app with **server** `http://10.0.2.2:8093` (Android
|
||||
emulator) or `http://127.0.0.1:8093` (Expo web / `adb reverse tcp:8093 tcp:8093`),
|
||||
**user** `e2e`, **password** `E2eTest#2026pass`.
|
||||
|
||||
Runs on native Linux (cargo, curl, ffmpeg with `drawtext`, exiftool) or in
|
||||
WSL driving the Windows toolchain; the script detects which. If port 8090 is
|
||||
taken, pick another with `E2E_PORT=8091` (the app's `drive-app` skill reads
|
||||
the same variable).
|
||||
WSL driving the Windows toolchain; the script detects which. The port is 8093
|
||||
(8090, the old default, is taken by another long-running service on the dev
|
||||
box). If 8093 is taken too, pick another with `E2E_PORT=...`; the app's
|
||||
`drive-app` skill and Detox config read the same variable.
|
||||
The port is written into `.work/state/.env` by `reset`, so after changing it
|
||||
run `E2E_PORT=... dev/e2e/e2e.sh reset` once; `start` alone keeps the old one.
|
||||
|
||||
## Isolation
|
||||
|
||||
@@ -26,7 +29,7 @@ It runs next to a real local server without touching it:
|
||||
| | real server | e2e server |
|
||||
|---|---|---|
|
||||
| exe | `target/debug/image-api.exe` | `dev/e2e/.work/bin/image-api-e2e.exe` (built in `target/e2e`) |
|
||||
| port | `BIND_URL` + `localhost:8088` | `127.0.0.1:8090` only (`LOCAL_BIND_URL=` disables the 8088 bind) |
|
||||
| port | `BIND_URL` + `localhost:8088` | `127.0.0.1:8093` only (`LOCAL_BIND_URL=` disables the 8088 bind) |
|
||||
| data | your `.env` | `dev/e2e/.work/state/` (db, thumbs, hls, gifs, previews, media) |
|
||||
| AI | configured | off — Ollama points at a closed port |
|
||||
|
||||
|
||||
+2
-2
@@ -31,7 +31,7 @@ fi
|
||||
EXE_NAME="image-api-e2e$EXT"
|
||||
LOG="$WORK/server.log"
|
||||
|
||||
E2E_PORT="${E2E_PORT:-8090}"
|
||||
E2E_PORT="${E2E_PORT:-8093}"
|
||||
# 127.0.0.1 is reachable from the Windows browser (Expo web), the Android
|
||||
# emulator (as 10.0.2.2) and USB devices via `adb reverse`. Set
|
||||
# E2E_BIND=0.0.0.0 for a physical device over Wi-Fi.
|
||||
@@ -258,7 +258,7 @@ Usage: dev/e2e/e2e.sh <command>
|
||||
logs tail -f the server log
|
||||
info connection details
|
||||
|
||||
Env: E2E_PORT (8090), E2E_BIND (127.0.0.1), E2E_USER, E2E_PASS.
|
||||
Env: E2E_PORT (8093), E2E_BIND (127.0.0.1), E2E_USER, E2E_PASS.
|
||||
Extra server env: dev/e2e/env.local (appended to the generated .env on reset).
|
||||
EOF
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user