summaryrefslogtreecommitdiff
path: root/cmd/ponzu/main.go
diff options
context:
space:
mode:
authorSteve <nilslice@gmail.com>2017-02-21 18:30:29 -0800
committerGitHub <noreply@github.com>2017-02-21 18:30:29 -0800
commite295f961e3e6e9add75086ab75cf90959cc890f5 (patch)
treeac97e9bc8d359f4287bfd1dfabfe9014f43c23a9 /cmd/ponzu/main.go
parent39e0708be1b57b5527f4c79708b25067ba50f86e (diff)
parentc0448ebb1157210ae7d36ddf6f49e4c44f914dd5 (diff)
Merge pull request #79 from ponzu-cms/ponzu-dev
[core] Windows build & run support
Diffstat (limited to 'cmd/ponzu/main.go')
-rw-r--r--cmd/ponzu/main.go6
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,