update install api

This commit is contained in:
aichy126 2022-11-02 18:33:23 +08:00
parent 1556d815cf
commit 6f999a5a28
1 changed files with 2 additions and 3 deletions

View File

@ -4,7 +4,6 @@ import (
"fmt"
"os"
"github.com/answerdev/answer/internal/base/server"
"github.com/answerdev/answer/internal/cli"
"github.com/answerdev/answer/internal/migrations"
"github.com/spf13/cobra"
@ -60,8 +59,8 @@ To run answer, use:
Short: "init answer application",
Long: `init answer application`,
Run: func(_ *cobra.Command, _ []string) {
installwebapi := server.NewInstallHTTPServer()
installwebapi.Run(":8088")
// installwebapi := server.NewInstallHTTPServer()
// installwebapi.Run(":8088")
cli.InstallAllInitialEnvironment(dataDirPath)
c, err := readConfig()
if err != nil {