You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: develop/README.md
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@ The docker compose environment in this directory allows to run document server b
8
8
-`make` to use the image that is currently available locally
9
9
-`make pull` to use the latest image from github
10
10
-`make build` to build the image locally from scratch
11
+
-`make mobile` for Android emulator / physical LAN device testing (see below)
11
12
12
13
You may need to generate a PAT first, as described in https://github.com/Euro-Office/DocumentServer/pkgs/container/documentserver
13
14
- In docker-compose.yml, for the eo service, ensure that `target` is set to `develop`
@@ -24,6 +25,31 @@ The docker compose environment in this directory allows to run document server b
24
25
- Secret key: `secret`
25
26
- Navigate to Files `http://localhost:8081/apps/files/`, create a document, and try to open it
26
27
28
+
#### Testing from mobile devices and emulators
29
+
30
+
`make local` runs on `localhost` — enough for the desktop browser and iOS simulator. For Android emulators and physical devices on the LAN, use `make mobile` instead — it detects the host's LAN IP and injects it so the editor is reachable from off-desktop clients.
31
+
32
+
| Client | Target | Nextcloud URL |
33
+
|---|---|---|
34
+
| Desktop browser |`make local` or `make mobile`|`http://localhost:8081/`|
35
+
| iOS simulator |`make local` or `make mobile`|`http://localhost:8081/`|
| Physical LAN device |`make mobile`|`http://<HOST_LAN_IP>:8081/`|
38
+
39
+
IP detection uses `ipconfig` on macOS and `ip route` on Linux. On native Windows — or any machine where detection fails — pass it explicitly:
40
+
41
+
```sh
42
+
make mobile HOST_LAN_IP=192.168.1.50
43
+
```
44
+
45
+
When your LAN IP changes (new wifi, tethering, etc.), update the running stack without a full rebuild:
46
+
47
+
```sh
48
+
make refresh-urls
49
+
```
50
+
51
+
Switching between `make local` and `make mobile` on an already-started stack is supported — both targets re-apply the correct URLs and trusted domains on each run.
52
+
27
53
#### Building changes:
28
54
29
55
- Enter the container with `docker compose exec eo bash`
0 commit comments