Created
March 29, 2013 15:54
-
-
Save daffl/5271716 to your computer and use it in GitHub Desktop.
A small snippet to easily set up a BrowserStack local testing tunnell on the command line.
This file contains 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 | |
PORT=$1 | |
SSH=$2 | |
if [ -z "$PORT" ] | |
then | |
PORT="80" | |
fi | |
if [ -z "$SSH" ] | |
then | |
SSH="0" | |
fi | |
java -jar /usr/local/lib/BrowserStackTunnel.jar <Your Command Line Tunnel Key> localhost,$PORT,$SSH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A small snippet to easily set up a BrowserStack local testing tunnell.
Copy BorwserStackTunnel.jar to
/urs/local/lib
and this shell script into/usr/local/bin
. Run it withbrowserstack
orbrowserstack [port] [sshFlag]
.