aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2015-10-25 23:44:05 +0900
committerKazuki Yamaguchi <k@rhe.jp>2015-10-25 23:44:05 +0900
commitbaf217cf0ed4eb5990d7823903a152d0c337c377 (patch)
tree2ddf447357d9b106ca7e0a9a3f9e9c2c97e6c599 /README.md
parente14480d588bfc6182fab7b9ed7292c317b36a752 (diff)
downloadplum-baf217cf0ed4eb5990d7823903a152d0c337c377.tar.gz
improve docs
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/README.md b/README.md
index 4ef807b..b6b98b6 100644
--- a/README.md
+++ b/README.md
@@ -16,6 +16,7 @@ See examples in `examples/`
### As a Rack-compatible server
Insert `require "plum/rack"` to your `config.ru`
+
```ruby
require "plum/rack"
@@ -29,10 +30,13 @@ App = -> env {
run App
```
+
Then run it with:
+
```sh
% plum -e production -p 8080 --https config.ru
```
+
By default, Plum generates a dummy server certificate if `--cert` and `--key` options are not specified.
## Examples