From 24b2e92a06cf6275b972f66373d7bfea7bfc3518 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 1 Oct 2018 16:35:30 +0200 Subject: Gun 1.3.0 --- docs/en/gun/1.3/guide/start/index.html | 191 +++++++++++++++++++++++++++++++++ 1 file changed, 191 insertions(+) create mode 100644 docs/en/gun/1.3/guide/start/index.html (limited to 'docs/en/gun/1.3/guide/start/index.html') diff --git a/docs/en/gun/1.3/guide/start/index.html b/docs/en/gun/1.3/guide/start/index.html new file mode 100644 index 00000000..644c634a --- /dev/null +++ b/docs/en/gun/1.3/guide/start/index.html @@ -0,0 +1,191 @@ + + + + + + + + + + Nine Nines: Starting and stopping + + + + + + + + + + + + + + + + +
+
+
+
+ +

Starting and stopping

+ +

This chapter describes how to start and stop the Gun application.

+

Setting up

+

Specify Gun as a dependency to your application in your favorite build tool.

+

With Erlang.mk this is done by adding gun to the DEPS variable in your Makefile.

+
Adding Gun as an Erlang.mk dependency
+
+
DEPS = gun
+
+

Starting

+

Gun is an OTP application. It needs to be started before you can use it.

+
Starting Gun in an Erlang shell
+
+
1> application:ensure_all_started(gun).
+{ok,[crypto,cowlib,asn1,public_key,ssl,gun]}
+
+

Stopping

+

You can stop Gun using the application:stop/1 function, however only Gun will be stopped. This is the reverse of application:start/1. The application_ensure_all_started/1 function has no equivalent for stopping all applications.

+
Stopping Gun
+
+
application:stop(gun).
+
+ + + + + + + + + + + + + + + + +
+ +
+ + +

+ Gun + 1.3 + + User Guide +

+ + + +

Navigation

+ +

Version select

+ + +
+
+
+
+ + + + + + + + + -- cgit v1.2.3