Add a simple wrapper to start a simple python HTTP server
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
1f4303534f
commit
9e49458211
1 changed files with 12 additions and 0 deletions
12
bin/tmphttp
Executable file
12
bin/tmphttp
Executable 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
|
Loading…
Reference in a new issue