Files
gerrit/contrib/mitm-ui/mitm-serve-app-dev.sh
brohlfs 618c4fe470 Fix contrib/mitm-ui by serving test components
With this fix in place the script mitm-serve-app-dev.sh works
as advertised. It proxies the https prod server and even allows
login. It is fairly slow though compared to run-server.sh, so
it cannot fully replace it at this point.

Note that there is also a WIP Change I0ff7e314a for getting us
from mitmproxy 2.0.2 to 4.0.4.

Change-Id: Id79510228d6e701f724cc947146768fabae58457
2019-03-22 19:22:04 +01:00

16 lines
504 B
Bash
Executable File

#!/bin/sh
workspace="./WORKSPACE"
if [[ ! -f ${workspace} ]] || [[ ! $(head -n 1 ${workspace}) == *"gerrit"* ]]; then
echo Please change to cloned Gerrit repo from https://gerrit.googlesource.com/gerrit/
exit 1
fi
mitm_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
bazel build //polygerrit-ui/app:test_components &
${mitm_dir}/dev-chrome.sh &
${mitm_dir}/mitm-docker.sh "serve-app-dev.py --app $(pwd)/polygerrit-ui/app/ --components $(pwd)/bazel-bin/polygerrit-ui/app/"