summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-05-25 10:22:26 -0700
committerGitHub <noreply@github.com>2017-05-25 10:22:26 -0700
commit38aa0ebb1df97ff185d84da2d3c2f9a11888729b (patch)
tree72a8557eb7e717b930d2a3ff304a77f4ddff437d
parent47d5ad5e4233b35cb9296835f135055986c9e7ee (diff)
parentdd61d24313cd62de4efd8edbfb15c3a04dde9098 (diff)
Merge pull request #150 from ponzu-cms/ponzu-dev
[cli] fix for run with --dev-https, args out of order
-rw-r--r--cmd/ponzu/main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/ponzu/main.go b/cmd/ponzu/main.go
index 362ff6a..7572dcc 100644
--- a/cmd/ponzu/main.go
+++ b/cmd/ponzu/main.go
@@ -78,7 +78,7 @@ $ ponzu run --port=8888 api`,
}
if devhttps {
- addTLS = "--devhttps"
+ addTLS = "--dev-https"
}
var services string
@@ -91,11 +91,11 @@ $ ponzu run --port=8888 api`,
name := buildOutputName()
buildPathName := strings.Join([]string{".", name}, string(filepath.Separator))
serve := exec.Command(buildPathName,
+ "serve",
+ services,
fmt.Sprintf("--port=%d", port),
fmt.Sprintf("--https-port=%d", httpsport),
addTLS,
- "serve",
- services,
)
serve.Stderr = os.Stderr
serve.Stdout = os.Stdout