From 1cf7851ccb002c95c0ef19a67807fb33895b723b Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Fri, 26 Jan 2018 17:49:18 -0800 Subject: update create_target.xmlsrc and release structure docs --- system/doc/design_principles/release_structure.xml | 6 +++--- system/doc/system_principles/create_target.xmlsrc | 8 ++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'system') diff --git a/system/doc/design_principles/release_structure.xml b/system/doc/design_principles/release_structure.xml index a0ab21c43f..8e62ba845f 100644 --- a/system/doc/design_principles/release_structure.xml +++ b/system/doc/design_principles/release_structure.xml @@ -208,8 +208,8 @@ releases/ch_rel-1.rel is therefore now instead duplicated in the tar file so no manual copying is necessary.

If a relup file and/or a system configuration file called - sys.config is found, these files are also included in - the release package. See + sys.config, or a sys.config.src, is found, these files + are also included in the release package. See Release Handling.

Options can be set to make the release package include source code and the ERTS binary as well.

@@ -240,7 +240,7 @@ $ROOT/lib/App1-AVsn1/ebin erts-EVsn/bin - Erlang runtime system executables releases/Vsn - .rel file and boot script start.boot; if present in the release package, relup - and/or sys.config + and/or sys.config or sys.config.src bin - Top-level Erlang runtime system executables

Applications are not required to be located under directory diff --git a/system/doc/system_principles/create_target.xmlsrc b/system/doc/system_principles/create_target.xmlsrc index f9b27ffc35..dc6cbbe980 100644 --- a/system/doc/system_principles/create_target.xmlsrc +++ b/system/doc/system_principles/create_target.xmlsrc @@ -263,6 +263,14 @@ os> /usr/local/erl-target/bin/erl -boot /usr/local/erl-target/releases/FI current directory create not only the file mysystem.rel, but also file sys.config, the latter file is tacitly put in the appropriate directory.

+

However, it can also be convenient to replace variables in + within a sys.config on the target after unpacking but + before running the release. If you have a sys.config.src + it will be included and is not required to be a valid Erlang term + file like sys.config. Before running the release you must + have a valid sys.config in the same directory, so using + sys.config.src requires having some tool to populate what is + needed and write sys.config to disk before booting the release.

-- cgit v1.2.3