Skip to content

Instantly share code, notes, and snippets.

@gogoprog
Created October 24, 2016 07:12
Show Gist options
  • Save gogoprog/6f8dcfaace555edb96cccda266b24f1d to your computer and use it in GitHub Desktop.
Save gogoprog/6f8dcfaace555edb96cccda266b24f1d to your computer and use it in GitHub Desktop.
Serve all openfl projects at once
#!/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