Update README.md
This commit is contained in:
parent
17fcb2e200
commit
641016fede
25
README.md
25
README.md
|
@ -5,3 +5,28 @@ This is a simple HTTP server meant to emulate python's SimpleHTTPServer module.
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
```httpserver [-h] [--cgi] [-b ADDRESS] [-d DIRECTORY] [-p VERSION] [port]```
|
```httpserver [-h] [--cgi] [-b ADDRESS] [-d DIRECTORY] [-p VERSION] [port]```
|
||||||
|
|
||||||
|
## Installing
|
||||||
|
|
||||||
|
First, have Go installed. Latest version, please. I'm talking about you debian.
|
||||||
|
|
||||||
|
Run as root
|
||||||
|
|
||||||
|
```
|
||||||
|
CDIR=$PWD
|
||||||
|
cd /tmp
|
||||||
|
git clone https://concord.hectabit.org/HectaBit/httpserver --depth=1
|
||||||
|
cd httpserver/httpserver
|
||||||
|
make install
|
||||||
|
cd $CDIR
|
||||||
|
CDIR=
|
||||||
|
```
|
||||||
|
This also puts your enviroment right back where it was, how nice of me!
|
||||||
|
|
||||||
|
## Compiling
|
||||||
|
```
|
||||||
|
git clone https://concord.hectabit.org/HectaBit/httpserver --depth=1
|
||||||
|
cd httpserver/httpserver
|
||||||
|
make
|
||||||
|
```
|
||||||
|
This creates the binary "httpserver"
|
Loading…
Reference in New Issue