diff options
author | Loïc Hoguin <[email protected]> | 2013-09-07 15:33:40 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-09-07 15:33:40 +0200 |
commit | 335676876b3f23cdc19450bd5eea68105e8fe142 (patch) | |
tree | 07dd949adfae0b6a45627ffaad73e01fd18ec919 /examples/hello_world/README.md | |
parent | 7ab12d1b66910d3651f7b2311a2fb6d17b9e4f31 (diff) | |
download | cowboy-335676876b3f23cdc19450bd5eea68105e8fe142.tar.gz cowboy-335676876b3f23cdc19450bd5eea68105e8fe142.tar.bz2 cowboy-335676876b3f23cdc19450bd5eea68105e8fe142.zip |
Convert the hello world example to a release
Diffstat (limited to 'examples/hello_world/README.md')
-rw-r--r-- | examples/hello_world/README.md | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/examples/hello_world/README.md b/examples/hello_world/README.md index dd3d948..84f3211 100644 --- a/examples/hello_world/README.md +++ b/examples/hello_world/README.md @@ -1,22 +1,25 @@ -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/hello_world_example console ``` -Then point your browser to the indicated URL. +Then point your browser at [http://localhost:8080](http://localhost:8080). -Example -------- +Example output +-------------- ``` bash $ curl -i http://localhost:8080 @@ -25,6 +28,7 @@ connection: keep-alive server: Cowboy date: Fri, 28 Sep 2012 04:10:25 GMT content-length: 12 +content-type: text/plain Hello world! ``` |