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

Side by Side Diff: mojoconfig

Issue 1305293003: Allow to set a fixed port for the development server. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Address Tony's comments. Created 5 years, 3 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
« no previous file with comments | « mojo/devtools/common/remote_adb_setup ('k') | 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 # This is a configuration file for devtools (`mojo_run`, `mojo_test) running 1 # This is a configuration file for devtools (`mojo_run`, `mojo_test) running
2 # within a Mojo checkout. 2 # within a Mojo checkout.
3 3
4 # The content has to parse to a Python dictionary literal. Strings of the form 4 # The content has to parse to a Python dictionary literal. Strings of the form
5 # '@{ABC}' are aliases that will be substituted for their values before 5 # '@{ABC}' are aliases that will be substituted for their values before
6 # evaluation: 6 # evaluation:
7 # '@{BUILD_DIR}': path to the output directory 7 # '@{BUILD_DIR}': path to the output directory
8 8
9 { 9 {
10 # Each dev server will be configured as specified and mapped for the 10 # Each dev server will be configured as specified and mapped for the
11 # indicated host using --map-origin. 11 # indicated host using --map-origin.
12 'dev_servers': [ 12 'dev_servers': [
13 { 13 {
14 'host': 'https://core.mojoapps.io/', 14 'host': 'https://core.mojoapps.io/',
15 # At this port the server will appear to the shell. That means actually
16 # running on this port when running a Linux shell and being forwarded from
17 # this port when running on Android. Using a fixed port enables caching
18 # server responses between shell runs.
19 'port': 31839,
15 # First matching prefix will apply. Within the directiories specified for 20 # First matching prefix will apply. Within the directiories specified for
16 # a prefix, first location that contains the requested path will apply. 21 # a prefix, first location that contains the requested path will apply.
17 'mappings': [ 22 'mappings': [
18 ('packages/', ['@{BUILD_DIR}/gen/dart-pkg/packages']), 23 ('packages/', ['@{BUILD_DIR}/gen/dart-pkg/packages']),
19 ('', [ 24 ('', [
20 # We map two directiories, so that both exploded dart apps under 25 # We map two directiories, so that both exploded dart apps under
21 # checkout root and built apps in the build directory are available. 26 # checkout root and built apps in the build directory are available.
22 # For example, one could refer to the apps of either type using urls: 27 # For example, one could refer to the apps of either type using urls:
23 # - https://core.mojoapps.io/spinning_cube.mojo 28 # - https://core.mojoapps.io/spinning_cube.mojo
24 # - https://core.mojoapps.io/examples/dart/device_info/main.dart 29 # - https://core.mojoapps.io/examples/dart/device_info/main.dart
25 '@{BUILD_DIR}', 30 '@{BUILD_DIR}',
26 '.' 31 '.'
27 ]), 32 ]),
28 ], 33 ],
29 }, 34 },
30 ], 35 ],
31 } 36 }
OLDNEW
« no previous file with comments | « mojo/devtools/common/remote_adb_setup ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698