From 24a22fa657af8398c963889d0bf08a904c96ec8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sun, 8 Sep 2013 20:17:25 +0200 Subject: Convert the SSL hello world example to a release --- examples/ssl_hello_world/README.md | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) (limited to 'examples/ssl_hello_world/README.md') diff --git a/examples/ssl_hello_world/README.md b/examples/ssl_hello_world/README.md index 766ff59..02bf13a 100644 --- a/examples/ssl_hello_world/README.md +++ b/examples/ssl_hello_world/README.md @@ -1,23 +1,27 @@ -Cowboy Hello World -================== +Hello world example +=================== -To compile this example you need rebar in your PATH. +To try this example, you need GNU `make`, `git` and +[relx](https://github.com/erlware/relx) in your PATH. -Type the following command: -``` -$ rebar get-deps compile -``` +To build the example, run the following command: -You can then start the Erlang node with the following command: +``` bash +$ make ``` -./start.sh + +To start the release in the foreground: + +``` bash +$ ./_rel/bin/ssl_hello_world_example console ``` -Then point your browser to the indicated URL. You will need to temporarily -trust the root certificate authority in `priv/ssl/cowboy-ca.crt`. +Then point your browser at [http://localhost:8443](http://localhost:8443). +You will need to temporarily trust the root certificate authority, +which can also be found in `priv/ssl/cowboy-ca.crt`. -Example -------- +Example output +-------------- ``` bash $ curl --cacert priv/ssl/cowboy-ca.crt -i https://localhost:8443 -- cgit v1.2.3