0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Getting started must include relx in deps

This commit is contained in:
Loïc Hoguin 2024-01-23 14:08:06 +01:00
parent 427a276ef2
commit 3e145af9b9
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764

View file

@ -62,7 +62,7 @@ handler.
=== Cowboy setup === Cowboy setup
We will modify the 'Makefile' to tell the build system it needs to We will modify the 'Makefile' to tell the build system it needs to
fetch and compile Cowboy: fetch and compile Cowboy, and that we will use releases:
[source,makefile] [source,makefile]
---- ----
@ -71,6 +71,8 @@ PROJECT = hello_erlang
DEPS = cowboy DEPS = cowboy
dep_cowboy_commit = 2.10.0 dep_cowboy_commit = 2.10.0
REL_DEPS = relx
DEP_PLUGINS = cowboy DEP_PLUGINS = cowboy
include erlang.mk include erlang.mk
@ -80,6 +82,9 @@ The `DEP_PLUGINS` line tells the build system to load the plugins
Cowboy provides. These include predefined templates that we will Cowboy provides. These include predefined templates that we will
use soon. use soon.
The `REL_DEPS` line tells the build system to fetch and build
`relx`, the library that will create the release.
If you do `make run` now, Cowboy will be included in the release If you do `make run` now, Cowboy will be included in the release
and started automatically. This is not enough however, as Cowboy and started automatically. This is not enough however, as Cowboy
doesn't do anything by default. We still need to tell Cowboy to doesn't do anything by default. We still need to tell Cowboy to