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) } errCh := make(chan error) err := server.Start(errCh) if err != nil { log.Fatal(err) } c, err := config.GetConfig() if err != nil { log.Fatal(err) } select { case err := <-errCh: log.Fatal(err) case <-time.After(5 * time.Second): util.RenderBorderedMessage(fmt.Sprintf("Daytona Server running on port: %d.\nTo connect to the server remotely, use the following command on the client machine:\n\ndaytona profile add -a %s", c.ApiPort, frpc.GetApiUrl(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.