Docco and logging`
This commit is contained in:
parent
3fae6bc247
commit
f44d08de9d
16
README.md
16
README.md
@ -2,13 +2,23 @@
|
|||||||
|
|
||||||
## Pre-requisites
|
## Pre-requisites
|
||||||
|
|
||||||
* youtube-dl (plus any of it's required dependencies, like ffmpeg)
|
* youtube-dl (plus any of its required dependencies, like ffmpeg)
|
||||||
* golang compiler
|
* golang compiler
|
||||||
|
|
||||||
## Build
|
## Build
|
||||||
|
|
||||||
TBD
|
go build
|
||||||
|
|
||||||
## Running
|
## Running
|
||||||
|
|
||||||
TBD
|
./gropple -port 8000 -address http://hostname:8000 -path /downloads
|
||||||
|
|
||||||
|
With no arguments, it will listen on port 8000 and use an address of 'http://localhost:8000'.
|
||||||
|
|
||||||
|
The address must be specified so that the bookmarklet can refer to the correct
|
||||||
|
host when it is not running on your local machine. You may also need to specify
|
||||||
|
a different address if you are running it behind a proxy server or similar.
|
||||||
|
|
||||||
|
## Using
|
||||||
|
|
||||||
|
|
||||||
|
2
main.go
2
main.go
@ -64,6 +64,8 @@ func main() {
|
|||||||
ReadTimeout: 5 * time.Second,
|
ReadTimeout: 5 * time.Second,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.Print("starting web service")
|
||||||
|
log.Printf("go to %s for details on installing the bookmarklet and to check status", address)
|
||||||
log.Fatal(srv.ListenAndServe())
|
log.Fatal(srv.ListenAndServe())
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user