Skip to content

Instantly share code, notes, and snippets.

@blasten
Last active August 29, 2015 14:22
Show Gist options
  • Save blasten/9450548b557a66dfb230 to your computer and use it in GitHub Desktop.
Save blasten/9450548b557a66dfb230 to your computer and use it in GitHub Desktop.
#!/bin/bash
# utils
# alias kp='pkill -f polyserve' - Kill all the `polyserve` processes
# alias p='~/polyserve.sh' - Polyserve
base=`basename "$PWD"`
port=$(( RANDOM % (1000) + 8000 ))
url="http://localhost:$port/components/$base/demo/index.html"
polyserve -p $port & > /dev/null
open $url
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment