Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CmdWeb = &cli.Command{ Name: "web", Usage: "Start Gitea web server", Description: `Gitea web server is the only thing you need to run, and it takes care of all the other things for you`, Action: runWeb, Flags: []cli.Flag{ &cli.StringFlag{ Name: "port", Aliases: []string{"p"}, Value: "3000", Usage: "Temporary port number to prevent conflict", }, &cli.StringFlag{ Name: "install-port", Value: "3000", Usage: "Temporary port number to run the install page on to prevent conflict", }, &cli.StringFlag{ Name: "pid", Aliases: []string{"P"}, Value: PIDFile, Usage: "Custom pid file path", }, &cli.BoolFlag{ Name: "quiet", Aliases: []string{"q"}, Usage: "Only display Fatal logging errors until logging is set-up", }, &cli.BoolFlag{ Name: "verbose", Usage: "Set initial logging to TRACE level until logging is properly set-up", }, }, }
CmdWeb represents the available web sub-command.
View Source
var PIDFile = "/run/gitea.pid"
PIDFile could be set from build tag
Functions ¶
func NewMainApp ¶
func NewMainApp(version, versionExtra string) *cli.App
func NoHTTPRedirector ¶
func NoHTTPRedirector()
NoHTTPRedirector tells our cleanup routine that we will not be using a fallback http redirector
func NoInstallListener ¶
func NoInstallListener()
NoInstallListener tells our cleanup routine that we will not be using a possibly provided listener for our install HTTP/HTTPS service
func NoMainListener ¶
func NoMainListener()
NoMainListener tells our cleanup routine that we will not be using a possibly provided listener for our main HTTP/HTTPS service
func RunMainApp ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.