Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ServerCmd = &cobra.Command{ Use: "server", Short: "Start the server process", Args: cobra.NoArgs, Run: func(cmd *cobra.Command, args []string) { if log.GetLevel() < log.InfoLevel { log.SetLevel(log.InfoLevel) } if runAsDaemon { fmt.Println("Starting the Daytona Server daemon...") err := daemon.Start() if err != nil { log.Fatal(err) } c, err := config.GetConfig() if err != nil { log.Fatal(err) } printServerStartedMessage(c) return } errCh := make(chan error) err := server.Start(errCh) if err != nil { log.Fatal(err) } c, err := config.GetConfig() if err != nil { log.Fatal(err) } go func() { err := <-errCh if err != nil { log.Fatal(err) } }() if err := server.HealthCheck(); err != nil { log.Fatal(err) } else { printServerStartedMessage(c) } err = <-errCh if err != nil { log.Fatal(err) } }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.