aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-10-11 20:52:29 +0200
committerLoïc Hoguin <[email protected]>2012-10-11 20:52:29 +0200
commit160063497cade2c5334cc06859a43afec7183e78 (patch)
tree4b96d429b6f18aab2a1bc654588b8c3014c80708 /examples
parent7b3d9943a9ead6624e639cb0229e608795cbc700 (diff)
downloadcowboy-160063497cade2c5334cc06859a43afec7183e78.tar.gz
cowboy-160063497cade2c5334cc06859a43afec7183e78.tar.bz2
cowboy-160063497cade2c5334cc06859a43afec7183e78.zip
Start crypto also in the examples and documentation
Diffstat (limited to 'examples')
-rw-r--r--examples/chunked_hello_world/src/chunked_hello_world.erl1
-rw-r--r--examples/echo_get/src/echo_get.erl1
-rw-r--r--examples/echo_post/src/echo_post.erl1
-rw-r--r--examples/hello_world/src/hello_world.erl1
-rw-r--r--examples/rest_hello_world/src/rest_hello_world.erl1
-rw-r--r--examples/static/src/static.erl1
6 files changed, 6 insertions, 0 deletions
diff --git a/examples/chunked_hello_world/src/chunked_hello_world.erl b/examples/chunked_hello_world/src/chunked_hello_world.erl
index 5c13f0e..78c771f 100644
--- a/examples/chunked_hello_world/src/chunked_hello_world.erl
+++ b/examples/chunked_hello_world/src/chunked_hello_world.erl
@@ -8,6 +8,7 @@
%% API.
start() ->
+ ok = application:start(crypto),
ok = application:start(ranch),
ok = application:start(cowboy),
ok = application:start(chunked_hello_world).
diff --git a/examples/echo_get/src/echo_get.erl b/examples/echo_get/src/echo_get.erl
index a8f8956..6ffff41 100644
--- a/examples/echo_get/src/echo_get.erl
+++ b/examples/echo_get/src/echo_get.erl
@@ -8,6 +8,7 @@
%% API.
start() ->
+ ok = application:start(crypto),
ok = application:start(ranch),
ok = application:start(cowboy),
ok = application:start(echo_get).
diff --git a/examples/echo_post/src/echo_post.erl b/examples/echo_post/src/echo_post.erl
index 9c47b9c..c7c8ce1 100644
--- a/examples/echo_post/src/echo_post.erl
+++ b/examples/echo_post/src/echo_post.erl
@@ -8,6 +8,7 @@
%% API.
start() ->
+ ok = application:start(crypto),
ok = application:start(ranch),
ok = application:start(cowboy),
ok = application:start(echo_post).
diff --git a/examples/hello_world/src/hello_world.erl b/examples/hello_world/src/hello_world.erl
index 301c6d2..d62ff4b 100644
--- a/examples/hello_world/src/hello_world.erl
+++ b/examples/hello_world/src/hello_world.erl
@@ -8,6 +8,7 @@
%% API.
start() ->
+ ok = application:start(crypto),
ok = application:start(ranch),
ok = application:start(cowboy),
ok = application:start(hello_world).
diff --git a/examples/rest_hello_world/src/rest_hello_world.erl b/examples/rest_hello_world/src/rest_hello_world.erl
index bdd24cc..e2b7463 100644
--- a/examples/rest_hello_world/src/rest_hello_world.erl
+++ b/examples/rest_hello_world/src/rest_hello_world.erl
@@ -8,6 +8,7 @@
%% API.
start() ->
+ ok = application:start(crypto),
ok = application:start(ranch),
ok = application:start(cowboy),
ok = application:start(rest_hello_world).
diff --git a/examples/static/src/static.erl b/examples/static/src/static.erl
index c3f4035..d3eb319 100644
--- a/examples/static/src/static.erl
+++ b/examples/static/src/static.erl
@@ -8,6 +8,7 @@
%% API.
start() ->
+ ok = application:start(crypto),
ok = application:start(ranch),
ok = application:start(cowboy),
ok = application:start(static).