web frontend for git (tangled's grandpa)
7
fork

Configure Feed

Select the types of activity you want to include in your feed.

config: server host and port

+11 -1
+3
config.yaml
··· 10 10 meta: 11 11 title: git good 12 12 description: i think it's a skill issue 13 + server: 14 + host: 127.0.0.1 15 + port: 5555
+4
config/config.go
··· 19 19 Title string `yaml:"title"` 20 20 Description string `yaml:"description"` 21 21 } `yaml:"meta"` 22 + Server struct { 23 + Host string `yaml:"host"` 24 + Port int `yaml:"port"` 25 + } `yaml:"server"` 22 26 } 23 27 24 28 func Read(f string) (*Config, error) {
+4 -1
main.go
··· 2 2 3 3 import ( 4 4 "flag" 5 + "fmt" 5 6 "log" 6 7 "net/http" 7 8 ··· 20 21 } 21 22 22 23 mux := routes.Handlers(c) 23 - log.Fatal(http.ListenAndServe(":5555", mux)) 24 + addr := fmt.Sprintf("%s:%d", c.Server.Host, c.Server.Port) 25 + log.Println("starting server on", addr) 26 + log.Fatal(http.ListenAndServe(addr, mux)) 24 27 }