Skip to content

Instantly share code, notes, and snippets.

@daffl
Created March 29, 2013 15:54
Show Gist options
  • Save daffl/5271716 to your computer and use it in GitHub Desktop.
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.
#!/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
@daffl
Copy link
Author

daffl commented Mar 29, 2013

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 with browserstack or browserstack [port] [sshFlag].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment