diff options
Diffstat (limited to 'cmd/ponzu/main.go')
-rw-r--r-- | cmd/ponzu/main.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmd/ponzu/main.go b/cmd/ponzu/main.go index d064569..c324a88 100644 --- a/cmd/ponzu/main.go +++ b/cmd/ponzu/main.go @@ -7,6 +7,7 @@ import ( "net/http" "os" "os/exec" + "path/filepath" "strings" "github.com/ponzu-cms/ponzu/system/admin" @@ -146,7 +147,10 @@ func main() { services = "admin,api" } - serve := exec.Command("./ponzu-server", + path := buildOutputPath() + name := buildOutputName() + buildPathName := strings.Join([]string{path, name}, string(filepath.Separator)) + serve := exec.Command(buildPathName, fmt.Sprintf("--port=%d", port), fmt.Sprintf("--httpsport=%d", httpsport), addTLS, |