Skip to content

Instantly share code, notes, and snippets.

@RyanMcG
Last active December 16, 2015 09:48
Show Gist options
  • Save RyanMcG/5415223 to your computer and use it in GitHub Desktop.
Save RyanMcG/5415223 to your computer and use it in GitHub Desktop.
Want to use ripple locally? Disabling websecutiry is bad for browsing but you can launch a second instance of chrome with a different user-data-dir.
#!/bin/sh
# This only works for OS X but could be easily adapted for Linux by changing
# some directory names.
IC_TEMP_DIR=/tmp/icdir
rm -rf $IC_TEMP_DIR
mkdir -p $IC_TEMP_DIR
cp -R ~/Library/Application\ Support/Google/Chrome/Default $IC_TEMP_DIR/Default
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
--disable-web-security \
--user-data-dir="$IC_TEMP_DIR" \
--app="http://localhost:8000/?enableripple=cordova"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment