Created
October 24, 2016 07:12
-
-
Save gogoprog/6f8dcfaace555edb96cccda266b24f1d to your computer and use it in GitHub Desktop.
Serve all openfl projects at once
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 | |
port=3000 | |
find . | grep Export/html5/bin/index.html | while read line | |
do | |
path=$(dirname "${line}") | |
pushd $path | |
python2 -m SimpleHTTPServer $port & | |
echo "Server started on port $port for $path" | |
port=$(($port + 1)) | |
popd | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment