Skip to content

Commit 7838e2e

Browse files
authored
Merge pull request #31 from jim-junior/main
fix: Api server not listening to right port
2 parents 9a5a5b7 + b861f6b commit 7838e2e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

cmd/cli/api.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ package cli
66
import (
77
apiServer "github.com/open-ug/conveyor/cmd/api"
88
"github.com/spf13/cobra"
9-
"github.com/spf13/viper"
109
)
1110

1211
var APIServerCmd = &cobra.Command{
@@ -18,7 +17,7 @@ var APIServerCmd = &cobra.Command{
1817
Run: func(cmd *cobra.Command, args []string) {
1918
port := cmd.Flag("port").Value.String()
2019
if port == "" {
21-
port = viper.GetString("api.port")
20+
port = "8080"
2221
}
2322
apiServer.StartServer(port)
2423
},

0 commit comments

Comments
 (0)