We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9a5a5b7 + b861f6b commit 7838e2eCopy full SHA for 7838e2e
1 file changed
cmd/cli/api.go
@@ -6,7 +6,6 @@ package cli
6
import (
7
apiServer "github.com/open-ug/conveyor/cmd/api"
8
"github.com/spf13/cobra"
9
- "github.com/spf13/viper"
10
)
11
12
var APIServerCmd = &cobra.Command{
@@ -18,7 +17,7 @@ var APIServerCmd = &cobra.Command{
18
17
Run: func(cmd *cobra.Command, args []string) {
19
port := cmd.Flag("port").Value.String()
20
if port == "" {
21
- port = viper.GetString("api.port")
+ port = "8080"
22
}
23
apiServer.StartServer(port)
24
},
0 commit comments