Skip to content

Commit

Permalink
Fix #81
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Fernández Llamas committed Feb 22, 2017
1 parent c0448eb commit 9f79e23
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
3 changes: 1 addition & 2 deletions cmd/ponzu/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
11 changes: 0 additions & 11 deletions cmd/ponzu/paths.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 "."
}

0 comments on commit 9f79e23

Please sign in to comment.