Last active
August 29, 2015 14:22
-
-
Save blasten/9450548b557a66dfb230 to your computer and use it in GitHub Desktop.
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/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