gerrit/contrib/mitm-ui/dev-chrome.sh
Viktar Donich 508f81ddce Scripts for UI plugins development using mitmproxy
Starts a local proxy that rewrites prod server responses, adding new
plugins, serving local files, enabling or disabling assets bundles.

Prerequisite: Docker
Target platform: OS X

Change-Id: I9abd94c816f987bf43e4335aff5be7ad17dd0fde
2018-12-21 15:22:16 -08:00

9 lines
250 B
Bash
Executable File

#!/bin/sh
if [[ "$OSTYPE" != "darwin"* ]]; then
echo Only works on OSX.
exit 1
fi
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222 --user-data-dir=${HOME}/devchrome --proxy-server="127.0.0.1:8888"