From d2a3f2cedd7c00d0933222aed9c06b3149aa4db4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 4 Apr 2018 13:13:37 +0200 Subject: Cowboy 2.3.0 --- .../erlang.mk/1/guide/getting_started/index.html | 40 +++++++++++----------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'docs/en/erlang.mk/1/guide/getting_started') diff --git a/docs/en/erlang.mk/1/guide/getting_started/index.html b/docs/en/erlang.mk/1/guide/getting_started/index.html index fe8532bf..ab67a6df 100644 --- a/docs/en/erlang.mk/1/guide/getting_started/index.html +++ b/docs/en/erlang.mk/1/guide/getting_started/index.html @@ -7,7 +7,7 @@ - + Nine Nines: Getting started @@ -74,7 +74,7 @@

The first step is always to create a new folder that will contain your project.

-
@@ -95,14 +95,14 @@ the Cowboy project.

in your Erlang distribution, or even in your OS packages.

The next step is therefore to download it:

-
$ wget https://erlang.mk/erlang.mk

Or:

-
@@ -119,7 +119,7 @@ tree. In other words, it will always have processes running.

This kind of project can be automatically generated by Erlang.mk. All you need to do is use the bootstrap target:

-
@@ -127,7 +127,7 @@ http://www.gnu.org/software/src-highlite -->

Something similar to the following snippet will then appear on your screen:

-
@@ -154,7 +154,7 @@ to bootstrap. This operation is done only once. Consult the information.

Of course, the generated project can now be compiled:

-
@@ -170,7 +170,7 @@ tree. In other words, it is nothing but modules.

This kind of project can also be generated by Erlang.mk, using the bootstrap-lib target:

-
@@ -178,7 +178,7 @@ http://www.gnu.org/software/src-highlite -->

Erlang.mk will once again bootstrap itself and generate all the files for your project. You can now compile it:

-
@@ -196,7 +196,7 @@ to your production system and run without any extra setup.

Erlang.mk can of course bootstrap your project to generate releases. You can use the bootstrap-rel target for this purpose:

-
@@ -204,7 +204,7 @@ http://www.gnu.org/software/src-highlite -->

This target can be combined with bootstrap or bootstrap-lib to create a project that will build a release:

-
@@ -217,7 +217,7 @@ chapter for more information.

When you run make from now on, Erlang.mk will compile your project and build the release:

-
@@ -244,7 +244,7 @@ development.

script, or simply run make run. The latter will also compile your project and build the release if it wasn’t already:

-
@@ -280,14 +280,14 @@ manually.

create a folder, put Erlang.mk in it, and write a one line Makefile containing:

-
include erlang.mk

For a step by step:

-
@@ -311,7 +311,7 @@ opposite.

of spaces per indentation level you want.

For example, if you prefer two spaces per indentation level:

-
@@ -331,7 +331,7 @@ templates for generating projects, but also individual modules!

You can list all available templates with the list-templates target:

-
@@ -340,7 +340,7 @@ Available templates: cowboy_http cowboy_loop

To generate a module, let’s say a gen_server, all you need to do is to call make new with the appropriate arguments:

-
@@ -350,7 +350,7 @@ using the gen_server template.

This module is automatically compiled the next time you run make:

-
@@ -384,7 +384,7 @@ anymore.

During development, if you don’t remember the name of a target, you can always run make help:

-
-- cgit v1.2.3