From 3e93a7557a3e1ed1b1404e6d84fadc10ac22f426 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Fri, 30 Nov 2018 22:57:15 +0100 Subject: Document selecting RELX_CONFIG for prod/dev --- doc/src/guide/releases.asciidoc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/doc/src/guide/releases.asciidoc b/doc/src/guide/releases.asciidoc index 92968ff..68174b3 100644 --- a/doc/src/guide/releases.asciidoc +++ b/doc/src/guide/releases.asciidoc @@ -15,6 +15,20 @@ the variable before including Erlang.mk: [source,make] RELX_CONFIG = $(CURDIR)/webchat.config +It is also possible to have multiple 'relx.config' files. +For example you might have one for development and one for +production. You can use conditionals to decide which one +should be used: + +[source,make] +---- +ifdef PROD +RELX_CONFIG = $(CURDIR)/relx.prod.config +else +RELX_CONFIG = $(CURDIR)/relx.dev.config +endif +---- + Relx does not need to be installed. Erlang.mk will download and build it automatically. -- cgit v1.2.3