Add a simple wrapper to start a simple python HTTP server

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2017-03-06 22:39:41 +01:00
parent 1f4303534f
commit 9e49458211
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

12
bin/tmphttp Executable file
View file

@ -0,0 +1,12 @@
#!/bin/bash
set -e
set -o pipefail
function unexpose {
expose -d 8888
}
trap unexpose EXIT
expose 8888
python -m SimpleHTTPServer 8888