mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-30 22:11:07 +00:00 
			
		
		
		
	[BRANDING] s/Gitea/Forgejo/g in CLI output
(cherry picked from commit 7543c126bb)
	
	
This commit is contained in:
		
					parent
					
						
							
								2dbb844606
							
						
					
				
			
			
				commit
				
					
						b66f422fc3
					
				
			
		
					 10 changed files with 28 additions and 28 deletions
				
			
		
							
								
								
									
										18
									
								
								cmd/web.go
									
										
									
									
									
								
							
							
						
						
									
										18
									
								
								cmd/web.go
									
										
									
									
									
								
							|  | @ -34,8 +34,8 @@ var PIDFile = "/run/gitea.pid" | |||
| // CmdWeb represents the available web sub-command. | ||||
| var CmdWeb = &cli.Command{ | ||||
| 	Name:  "web", | ||||
| 	Usage: "Start Gitea web server", | ||||
| 	Description: `Gitea web server is the only thing you need to run, | ||||
| 	Usage: "Start the Forgejo web server", | ||||
| 	Description: `The Forgejo web server is the only thing you need to run, | ||||
| and it takes care of all the other things for you`, | ||||
| 	Before: PrepareConsoleLoggerLevel(log.INFO), | ||||
| 	Action: runWeb, | ||||
|  | @ -108,7 +108,7 @@ func createPIDFile(pidPath string) { | |||
| } | ||||
| 
 | ||||
| func showWebStartupMessage(msg string) { | ||||
| 	log.Info("Gitea version: %s%s", setting.AppVer, setting.AppBuiltWith) | ||||
| 	log.Info("Forgejo version: %s%s", setting.AppVer, setting.AppBuiltWith) | ||||
| 	log.Info("* RunMode: %s", setting.RunMode) | ||||
| 	log.Info("* AppPath: %s", setting.AppPath) | ||||
| 	log.Info("* WorkPath: %s", setting.AppWorkPath) | ||||
|  | @ -136,13 +136,13 @@ func serveInstall(ctx *cli.Context) error { | |||
| 	c := install.Routes() | ||||
| 	err := listen(c, false) | ||||
| 	if err != nil { | ||||
| 		log.Critical("Unable to open listener for installer. Is Gitea already running?") | ||||
| 		log.Critical("Unable to open listener for installer. Is Forgejo already running?") | ||||
| 		graceful.GetManager().DoGracefulShutdown() | ||||
| 	} | ||||
| 	select { | ||||
| 	case <-graceful.GetManager().IsShutdown(): | ||||
| 		<-graceful.GetManager().Done() | ||||
| 		log.Info("PID: %d Gitea Web Finished", os.Getpid()) | ||||
| 		log.Info("PID: %d Forgejo Web Finished", os.Getpid()) | ||||
| 		log.GetManager().Close() | ||||
| 		return err | ||||
| 	default: | ||||
|  | @ -211,7 +211,7 @@ func serveInstalled(ctx *cli.Context) error { | |||
| 	webRoutes := routers.NormalRoutes() | ||||
| 	err := listen(webRoutes, true) | ||||
| 	<-graceful.GetManager().Done() | ||||
| 	log.Info("PID: %d Gitea Web Finished", os.Getpid()) | ||||
| 	log.Info("PID: %d Forgejo Web Finished", os.Getpid()) | ||||
| 	log.GetManager().Close() | ||||
| 	return err | ||||
| } | ||||
|  | @ -237,9 +237,9 @@ func runWeb(ctx *cli.Context) error { | |||
| 	defer cancel() | ||||
| 
 | ||||
| 	if os.Getppid() > 1 && len(os.Getenv("LISTEN_FDS")) > 0 { | ||||
| 		log.Info("Restarting Gitea on PID: %d from parent PID: %d", os.Getpid(), os.Getppid()) | ||||
| 		log.Info("Restarting Forgejo on PID: %d from parent PID: %d", os.Getpid(), os.Getppid()) | ||||
| 	} else { | ||||
| 		log.Info("Starting Gitea on PID: %d", os.Getpid()) | ||||
| 		log.Info("Starting Forgejo on PID: %d", os.Getpid()) | ||||
| 	} | ||||
| 
 | ||||
| 	// Set pid file setting | ||||
|  | @ -299,7 +299,7 @@ func listen(m http.Handler, handleRedirector bool) error { | |||
| 	if setting.Protocol != setting.HTTPUnix && setting.Protocol != setting.FCGIUnix { | ||||
| 		listenAddr = net.JoinHostPort(listenAddr, setting.HTTPPort) | ||||
| 	} | ||||
| 	_, _, finished := process.GetManager().AddTypedContext(graceful.GetManager().HammerContext(), "Web: Gitea Server", process.SystemProcessType, true) | ||||
| 	_, _, finished := process.GetManager().AddTypedContext(graceful.GetManager().HammerContext(), "Web: Forgejo Server", process.SystemProcessType, true) | ||||
| 	defer finished() | ||||
| 	log.Info("Listen: %v://%s%s", setting.Protocol, listenAddr, setting.AppSubURL) | ||||
| 	// This can be useful for users, many users do wrong to their config and get strange behaviors behind a reverse-proxy. | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue