
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
16 lines
504 B
Bash
Executable File
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/"
|