summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-02-22 14:23:12 -0800
committerSteve Manuel <nilslice@gmail.com>2017-02-22 14:23:12 -0800
commitae242b7f926b1fcbec36d66df8355f432219d1c9 (patch)
treeebb88b516836484299f47a795d6f5b3eec83fe06
parente295f961e3e6e9add75086ab75cf90959cc890f5 (diff)
parent5a12ad85178b8ccf5d57b6eefbc36e5683e793a7 (diff)
Merge branch 'ponzu-dev' of https://github.com/ponzu-cms/ponzu into ponzu-dev
-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 "."
-}