summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/ponzu/main.go3
-rw-r--r--cmd/ponzu/paths.go11
2 files changed, 1 insertions, 13 deletions
diff --git a/cmd/ponzu/main.go b/cmd/ponzu/main.go
index c324a88..f44f626 100644
--- a/cmd/ponzu/main.go
+++ b/cmd/ponzu/main.go
@@ -147,9 +147,8 @@ func main() {
services = "admin,api"
}
- path := buildOutputPath()
name := buildOutputName()
- buildPathName := strings.Join([]string{path, name}, string(filepath.Separator))
+ buildPathName := strings.Join([]string{".", name}, string(filepath.Separator))
serve := exec.Command(buildPathName,
fmt.Sprintf("--port=%d", port),
fmt.Sprintf("--httpsport=%d", httpsport),
diff --git a/cmd/ponzu/paths.go b/cmd/ponzu/paths.go
index 73d8d73..8bc6e39 100644
--- a/cmd/ponzu/paths.go
+++ b/cmd/ponzu/paths.go
@@ -11,14 +11,3 @@ func buildOutputName() string {
return "ponzu-server"
}
-
-// buildOutputPath returns the correct path to the ponzu-server binary
-// built, based on the host Operating System. This is necessary so that
-// the UNIX-y systems know to look in the current directory, and not the $PATH
-func buildOutputPath() string {
- if runtime.GOOS == "windows" {
- return ""
- }
-
- return "."
-}