Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,13 @@ go install github.com/gocraft/work/cmd/workwebui

Then, you can run it:
```bash
workwebui -redis="redis:6379" -ns="work" -listen=":5040"
workwebui -redis="redis://127.0.0.1:6379" -ns="work" -listen=":5040"
```

For the `-redis` parameter, any Redis URI conforming to the
[specification](https://www.iana.org/assignments/uri-schemes/prov/redis) is
allowed - see its ABNF notation or example section for further details.

Navigate to ```http://localhost:5040/```.

You'll see a view that looks like this:
Expand Down
2 changes: 1 addition & 1 deletion cmd/workwebui/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

var (
redisHostPort = flag.String("redis", ":6379", "redis hostport")
redisHostPort = flag.String("redis", "redis://:6379", "redis URI")
redisDatabase = flag.String("database", "0", "redis database")
redisNamespace = flag.String("ns", "work", "redis namespace")
webHostPort = flag.String("listen", ":5040", "hostport to listen for HTTP JSON API")
Expand Down