|
|
@ -30,10 +30,7 @@ var CmdWeb = cli.Command{ |
|
|
|
Description: ` |
|
|
|
Description: ` |
|
|
|
gogs web`, |
|
|
|
gogs web`, |
|
|
|
Action: runWeb, |
|
|
|
Action: runWeb, |
|
|
|
Flags: []cli.Flag{ |
|
|
|
Flags: []cli.Flag{}, |
|
|
|
//cli.BoolFlag{"update, u", "update pakcage(s) and dependencies if any"},
|
|
|
|
|
|
|
|
//cli.BoolFlag{"verbose, v", "show process details"},
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var AppHelpers template.FuncMap = map[string]interface{}{ |
|
|
|
var AppHelpers template.FuncMap = map[string]interface{}{ |
|
|
@ -78,8 +75,6 @@ func runWeb(*cli.Context) { |
|
|
|
|
|
|
|
|
|
|
|
//m.Get("/:username/:reponame", repo.Repo)
|
|
|
|
//m.Get("/:username/:reponame", repo.Repo)
|
|
|
|
|
|
|
|
|
|
|
|
//m.Get("/:username/:reponame", repo.Repo)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
listenAddr := fmt.Sprintf("%s:%s", |
|
|
|
listenAddr := fmt.Sprintf("%s:%s", |
|
|
|
base.Cfg.MustValue("server", "HTTP_ADDR"), |
|
|
|
base.Cfg.MustValue("server", "HTTP_ADDR"), |
|
|
|
base.Cfg.MustValue("server", "HTTP_PORT", "3000")) |
|
|
|
base.Cfg.MustValue("server", "HTTP_PORT", "3000")) |
|
|
|