We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d26d430 commit 811e719Copy full SHA for 811e719
run.go
@@ -4,9 +4,11 @@ import (
4
"fmt"
5
"os"
6
"os/exec"
7
+ "strconv"
8
"strings"
9
10
"github.com/code-game-project/go-utils/cgfile"
11
+ "github.com/code-game-project/go-utils/config"
12
"github.com/code-game-project/go-utils/external"
13
"github.com/code-game-project/go-utils/modules"
14
@@ -63,6 +65,10 @@ func runClient(url string, args []string) error {
63
65
func runServer(args []string) error {
64
66
cmdArgs := []string{"run", "."}
67
cmdArgs = append(cmdArgs, args...)
68
+
69
+ conf := config.Load()
70
+ os.Setenv("CG_PORT", strconv.Itoa(conf.DevPort))
71
72
_, err := cgExec.Execute(false, "go", cmdArgs...)
73
return err
74
}
0 commit comments