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

Side by Side Diff: mojo/devtools/common/remote_adb_setup

Issue 1529963002: Forward 31842. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: fix comment Created 5 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # Copyright 2015 The Chromium Authors. All rights reserved. 2 # Copyright 2015 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 if [[ $# -ne 1 && $# -ne 2 ]]; then 6 if [[ $# -ne 1 && $# -ne 2 ]]; then
7 cat <<'EOF' 7 cat <<'EOF'
8 Usage: remote_adb_setup REMOTE_HOST [REMOTE_ADB] 8 Usage: remote_adb_setup REMOTE_HOST [REMOTE_ADB]
9 9
10 Configures adb on a remote machine to communicate with a device attached to the 10 Configures adb on a remote machine to communicate with a device attached to the
(...skipping 28 matching lines...) Expand all
39 # Start the adb server locally. 39 # Start the adb server locally.
40 adb start-server 40 adb start-server
41 41
42 # Forward various ports from the remote host to the local host: 42 # Forward various ports from the remote host to the local host:
43 # 5037: adb 43 # 5037: adb
44 # and from the local host to the remote host: 44 # and from the local host to the remote host:
45 # 8181: Flutter observatory 45 # 8181: Flutter observatory
46 # 9998: http server for Flutter 46 # 9998: http server for Flutter
47 # 31839: http server for https://core.mojoapps.io 47 # 31839: http server for https://core.mojoapps.io
48 # 31840: http server for the local mojo: origin 48 # 31840: http server for the local mojo: origin
49 # 31841: http server for base mappings 49 # 31841-31842: http servers for origin mappings
50 ssh -C \ 50 ssh -C \
51 -R 5037:127.0.0.1:5037 \ 51 -R 5037:127.0.0.1:5037 \
52 -L 8181:127.0.0.1:8181 \ 52 -L 8181:127.0.0.1:8181 \
53 -L 9998:127.0.0.1:9998 \ 53 -L 9998:127.0.0.1:9998 \
54 -L 31839:127.0.0.1:31839 \ 54 -L 31839:127.0.0.1:31839 \
55 -L 31840:127.0.0.1:31840 \ 55 -L 31840:127.0.0.1:31840 \
56 -L 31841:127.0.0.1:31841 \ 56 -L 31841:127.0.0.1:31841 \
57 -L 31842:127.0.0.1:31842 \
57 "$remote_host" 58 "$remote_host"
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698