From d2a3f2cedd7c00d0933222aed9c06b3149aa4db4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?=
You can specify additional Relx options using the RELX_OPTS
variable. For example, to enable dev_mode
:
RELX_OUTPUT_DIR
. It defaults to the _rel
directory. You can also override it:If you need to generate the release, and only the release,
the rel
target can be used:
$(RELX_OUTPUT_DIR)/<name>/<name>-<vsn>.tar.gz
Erlang.mk provides a convenience function for running the
release with one simple command:
-
@@ -174,7 +174,7 @@ release will be example
.
Once all this is done, you can build the tarball for the
release upgrade:
-
@@ -184,7 +184,7 @@ release, $RELX_OUTPUT_DIR/example/example-2.tar.gz
.
Move the archive to the correct location on the running
node. From the release’s root directory:
-
@@ -192,14 +192,14 @@ http://www.gnu.org/software/src-highlite -->
$ mv path/to/example-2.tar.gz releases/2/
Finally, upgrade the release:
-
$ bin/example_release upgrade "2/example_release"
Or on Windows:
-
@@ -214,14 +214,14 @@ http://www.gnu.org/software/src-highlite -->
generated by Relx based on VCS history.
Create a file rel/version with only one line inside:
-
{{ release_version }}
Add/Update the overlay
section of your relx.config
:
-
@@ -231,7 +231,7 @@ http://www.gnu.org/software/src-highlite -->
When you run make rel
it creates the file $(RELX_OUTPUT_DIR)/example/version
which contains the version value generated by Relx.
-
@@ -240,14 +240,14 @@ http://www.gnu.org/software/src-highlite -->
In your Makefile
you can use this simple snippet to get the version,
but please keep in mind that this should depend on the rel
target:
-
$(shell cat $(RELX_OUTPUT_DIR)/$(RELX_REL_NAME)/version)
For example:
-
@@ -258,7 +258,7 @@ http://www.gnu.org/software/src-highlite -->
echo APP_VERSION = $(APP_VERSION)
Would output:
-
--
cgit v1.2.3