Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: mojo/devtools/common/docs/mojo_run.md

Issue 1397193005: mojo_run: support parallel Android runs of mojo_run. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # mojo_run 1 # mojo_run
2 2
3 `mojo_run` allows you to run a Mojo shell either on the host, or on an attached 3 `mojo_run` allows you to run a Mojo shell either on the host, or on an attached
4 Android device. 4 Android device.
5 5
6 ```sh 6 ```sh
7 mojo_run APP_URL # Run on the host. 7 mojo_run APP_URL # Run on the host.
8 mojo_run APP_URL --android # Run on Android device. 8 mojo_run APP_URL --android # Run on Android device.
9 mojo_run "APP_URL APP_ARGUMENTS" # Run an app with startup arguments 9 mojo_run "APP_URL APP_ARGUMENTS" # Run an app with startup arguments
10 ``` 10 ```
11 11
12 Unless running within a Mojo checkout, we need to indicate the path to the shell 12 Unless running within a Mojo checkout, we need to indicate the path to the shell
13 binary: 13 binary:
14 14
15 ```sh 15 ```sh
16 mojo_run --shell-path path/to/shell/binary APP_URL 16 mojo_run --shell-path path/to/shell/binary APP_URL
17 ``` 17 ```
18 18
19 Some applications are meant to be run embedded in a **window manager**. To run 19 Some applications are meant to be run embedded in a **window manager**. To run
20 these, you can pass the app url using the `--embed` flag. This will run the 20 these, you can pass the app url using the `--embed` flag. This will run the
21 window manager and pass the given url to it: 21 window manager and pass the given url to it:
22 22
23 ```sh 23 ```sh
24 mojo_run --embed APP_URL [--android] 24 mojo_run --embed APP_URL [--android]
25 ``` 25 ```
26 26
27 By default, `mojo_run` uses mojo:kiosk_wm as the window manager. You can pass a 27 By default, `mojo_run` uses mojo:kiosk_wm as the window manager. You can pass a
28 different window manager url using the `--window-manager` flag to override this. 28 different window manager url using the `--window-manager` flag to override this.
29
30 ## Running on multiple Android devices
31
32 Two or more instances of `mojo_run` can simultaneously run on separate Android
33 devices. For that, run in individual shells:
34
35 ```sh
36 mojo_run APP_URL --android --target-device DEVICE_ID --free-host-ports
37 ```
38
39 ```sh
40 mojo_run APP_URL --android --target-device ANOTHER_DEVICE_ID --free-host-ports
41 ```
42
43 `--free-host-ports` makes `mojo_run` spawn the development servers on
44 system-allocated ports on the server (so that multiple instances can run in
45 parallel) while still forwarding them to fixed ports on the device (so that
46 caching still works). This breaks the remote workflow over `adb_remote_setup`.
47
48 DEVICE_ID can be obtained from `adb devices`.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698