Skip to content

Commit 432a9a8

Browse files
committed
docs
1 parent 6e8130b commit 432a9a8

File tree

2 files changed

+19
-22
lines changed

2 files changed

+19
-22
lines changed

README.md

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -247,33 +247,28 @@ curl --get http://localhost:8086/query \
247247

248248
### Mobile
249249

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+
251256
1. Have the lila-docker services running, with the `Mobile` optional service started
252257
2. Configure lila to run with your host's IP address or hostname instead of localhost
258+
253259
```bash
254260
./lila-docker hostname
255261
```
262+
263+
- Then verify that your phone can access the site at `http://[your-selection]:8080`
264+
256265
3. Connect to your phone
266+
257267
```bash
258268
./lila-docker mobile
259269
```
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:
275270
276-
1. Get a shell on the container:
271+
4. Get a shell on the container:
277272
278273
```bash
279274
docker compose exec -it mobile bash
@@ -282,14 +277,16 @@ curl --get http://localhost:8086/query \
282277
adb devices
283278
```
284279
285-
2. Install the app dependencies:
280+
5. Install the app dependencies:
286281
```bash
287282
flutter pub get
288283
dart run build_runner build
289284
```
290-
3. Run the app:
285+
6. Run the app:
291286
```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
293290
```
294-
- First time you run it, it might take a while
295291
- 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

command/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ fn hostname(mut config: Config) -> std::io::Result<()> {
482482
config.lila_url = Some(format!("http://{hostname}:8080"));
483483
config.save();
484484

485-
outro("✔ Hostname updated")
485+
outro(format!("✔ Local Lichess URL set to http://{hostname}:8080"))
486486
}
487487

488488
fn mobile_setup(mut config: Config) -> std::io::Result<()> {

0 commit comments

Comments
 (0)