summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-10-13 08:02:45 -0700
committerSteve Manuel <nilslice@gmail.com>2016-10-13 08:02:45 -0700
commitd4d938d634552eed167688409a90cfe698b35653 (patch)
tree5505905da1b0f8b25aef22e30633a1339f12bb5c
parent6a9029b2d9bce2fe44e14d6fbc50b8c42c759103 (diff)
updating cli usage
-rw-r--r--cmd/ponzu/main.go19
-rw-r--r--management/editor/editor.go2
2 files changed, 10 insertions, 11 deletions
diff --git a/cmd/ponzu/main.go b/cmd/ponzu/main.go
index 5b5fa56..39fa173 100644
--- a/cmd/ponzu/main.go
+++ b/cmd/ponzu/main.go
@@ -45,23 +45,22 @@ generate, gen, g <type>:
-[[--port=8080] [--tls]] serve, s <service(,service)>:
+[[--port=8080] [--tls]] run <service(,service)>:
Starts the 'ponzu' HTTP server for the JSON API, Admin System, or both.
- Must be given at least one (1) parameter. The segments describe
- which services to start, either 'admin' (Admin System / CMS
- backend) or 'api' (JSON API), and, optionally, if the server(s) should
- utilize TLS encryption (served over HTTPS), which is automatically managed
- using Let's Encrypt (https://letsencrypt.org)
+ The segments, separated by a comma, describe which services to start, either
+ 'admin' (Admin System / CMS backend) or 'api' (JSON API), and, optionally,
+ if the server(s) should utilize TLS encryption (served over HTTPS), which is
+ automatically managed using Let's Encrypt (https://letsencrypt.org)
Example:
- $ ponzu --port=8080 --tls serve admin,api
+ $ ponzu --port=8080 --tls run admin,api
(or)
- $ ponzu serve admin
+ $ ponzu run admin
(or)
- $ ponzu --port=8888 serve api
+ $ ponzu --port=8888 run api
- Defaults to '--port=8080 admin,api' (running Admin & API on port 8080, without TLS)
+ Defaults to '--port=8080 run admin,api' (running Admin & API on port 8080, without TLS)
Note:
Admin and API cannot run on separate processes unless you use a copy of the
diff --git a/management/editor/editor.go b/management/editor/editor.go
index 06d5a59..5e26740 100644
--- a/management/editor/editor.go
+++ b/management/editor/editor.go
@@ -46,7 +46,7 @@ func Form(post Editable, fields ...Field) ([]byte, error) {
addPostDefaultFieldsToEditorView(post, editor)
submit := `
-<div class="input-field">
+<div class="input-field">
<button class="right waves-effect waves-light btn green" type="submit">Save</button>
</div>
`