Skip to content

Commit

Permalink
Revert "Make the default action for the gitea executable that of runn…
Browse files Browse the repository at this point in the history
…ing the webserver (go-gitea#3331)"

I don't actually like this feature, since starting the web server with
a default config creates a bunch of install files

This reverts commit 88a3bb6.
  • Loading branch information
aswild committed Feb 25, 2018
1 parent 31de6a9 commit 0fbe794
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ func main() {
app := cli.NewApp()
app.Name = "Gitea"
app.Usage = "A painless self-hosted Git service"
app.Description = `By default, gitea will start serving using the webserver with no
arguments - which can alternatively be run by running the subcommand web.`
app.Version = Version + formatBuiltWith(Tags)
app.Commands = []cli.Command{
cmd.CmdWeb,
Expand All @@ -47,7 +45,6 @@ arguments - which can alternatively be run by running the subcommand web.`
cmd.CmdAdmin,
}
app.Flags = append(app.Flags, []cli.Flag{}...)
app.Action = cmd.CmdWeb.Action
err := app.Run(os.Args)
if err != nil {
log.Fatal(4, "Failed to run app with %s: %v", os.Args, err)
Expand Down

0 comments on commit 0fbe794

Please sign in to comment.