Modify app.yaml in the built AppRTC rather in src.
When I switched to prebuilt AppRTC, I forgot we need to modify the
built app.yaml rather the one in src. This used to work because we ran
grunt build after the copy (which copied the file I modified), but after
switching to pre-built we're effectively running grunt build _before_
the copy. This caused copy_apprtc.py to write to a config file that
wasn't read by the server on startup.
We could also delete the code and just flip the flag during apprtc.zip
packaging, but that seems tedious and error-prone.
BUG=581283
R=kjellander@chromium.org
Review URL: https://codereview.chromium.org/1657693002 .
diff --git a/copy_apprtc.py b/copy_apprtc.py
index e65dcb0..6d09953 100755
--- a/copy_apprtc.py
+++ b/copy_apprtc.py
@@ -46,7 +46,7 @@
shutil.copytree('apprtc',
target_dir, ignore=shutil.ignore_patterns('.svn', '.git'))
- app_yaml_path = os.path.join(target_dir, 'src', 'app_engine', 'app.yaml')
+ app_yaml_path = os.path.join(target_dir, 'out', 'app_engine', 'app.yaml')
_ConfigureApprtcServerToDeveloperMode(app_yaml_path)