Permalink
Browse files

Start crypto also in the examples and documentation

  • Loading branch information...
1 parent 7b3d994 commit 160063497cade2c5334cc06859a43afec7183e78 @essen essen committed Oct 11, 2012
View
@@ -39,7 +39,8 @@ Cowboy does nothing by default.
Cowboy uses Ranch for handling connections, and provides convenience
functions to start and stop Ranch listeners. The Ranch application
-must always be started before Cowboy.
+must always be started before Cowboy. The crypto application must
+also be started.
The `cowboy:start_http/4` function will handle HTTP connections
using the TCP transport. Similarly, `cowboy:start_https/4` will
@@ -57,6 +58,7 @@ HTTP listener. It redirects all requests to the `my_handler`
module.
``` erlang
+application:start(crypto),
application:start(ranch),
application:start(cowboy),
Dispatch = [
@@ -8,6 +8,7 @@
%% API.
start() ->
+ ok = application:start(crypto),
ok = application:start(ranch),
ok = application:start(cowboy),
ok = application:start(chunked_hello_world).
@@ -8,6 +8,7 @@
%% API.
start() ->
+ ok = application:start(crypto),
ok = application:start(ranch),
ok = application:start(cowboy),
ok = application:start(echo_get).
@@ -8,6 +8,7 @@
%% API.
start() ->
+ ok = application:start(crypto),
ok = application:start(ranch),
ok = application:start(cowboy),
ok = application:start(echo_post).
@@ -8,6 +8,7 @@
%% API.
start() ->
+ ok = application:start(crypto),
ok = application:start(ranch),
ok = application:start(cowboy),
ok = application:start(hello_world).
@@ -8,6 +8,7 @@
%% API.
start() ->
+ ok = application:start(crypto),
ok = application:start(ranch),
ok = application:start(cowboy),
ok = application:start(rest_hello_world).
@@ -8,6 +8,7 @@
%% API.
start() ->
+ ok = application:start(crypto),
ok = application:start(ranch),
ok = application:start(cowboy),
ok = application:start(static).

0 comments on commit 1600634

Please sign in to comment.