Last active
December 16, 2015 09:48
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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