@@ -247,33 +247,28 @@ curl --get http://localhost:8086/query \
247
247
248
248
# ## Mobile
249
249
250
- 1. On your host machine:
250
+ 1. On your Android phone:
251
+ 1. Connect your phone to the same wifi network as your host machine
252
+ 2. Enable Developer Mode
253
+ 3. In Developer Options, enable Wireless Debugging and tap into its menu
254
+ 2. On your host machine:
255
+
251
256
1. Have the lila-docker services running, with the ` Mobile` optional service started
252
257
2. Configure lila to run with your host' s IP address or hostname instead of localhost
258
+
253
259
```bash
254
260
./lila-docker hostname
255
261
```
262
+
263
+ - Then verify that your phone can access the site at `http://[your-selection]:8080`
264
+
256
265
3. Connect to your phone
266
+
257
267
```bash
258
268
./lila-docker mobile
259
269
```
260
- Get the values from the steps below.
261
- 2. On your Android phone:
262
- 1. Connect your phone to the same wifi network as your host machine
263
- 2. Ensure your phone and can access lila in your browser app using the host value you set above
264
- ```
265
- http://[your-selection]:8080
266
- ```
267
- 3. Enable Developer Mode
268
- 4. In Developer Options
269
- 1. enable wireless debugging
270
- 2. Tap into the wireless debugging settings
271
- 1. Use the "IP address & Port" value in the prompt on your host
272
- 2. Tap "Pair device with pairing code"
273
- 1. Enter the pairing port and code in the prompt on your host
274
- 3. On your host machine:
275
270
276
- 1 . Get a shell on the container:
271
+ 4 . Get a shell on the container:
277
272
278
273
```bash
279
274
docker compose exec -it mobile bash
@@ -282,14 +277,16 @@ curl --get http://localhost:8086/query \
282
277
adb devices
283
278
```
284
279
285
- 2 . Install the app dependencies:
280
+ 5 . Install the app dependencies:
286
281
```bash
287
282
flutter pub get
288
283
dart run build_runner build
289
284
```
290
- 3 . Run the app:
285
+ 6 . Run the app:
291
286
```bash
292
- flutter run -v --dart-define=LICHESS_HOST=$LILA_URL --dart-define=LICHESS_WS_HOST=$LILA_URL
287
+ flutter run -v \
288
+ --dart-define LICHESS_HOST=$LILA_URL \
289
+ --dart-define LICHESS_WS_HOST=$LILA_URL
293
290
```
294
- - First time you run it, it might take a while
295
291
- No substitutions necessary. The `$LILA_URL` environment variable will already be set on the container.
292
+ - First time you run it, it might take a while
0 commit comments