aboutsummaryrefslogtreecommitdiff
path: root/rel/env.sh.eex
diff options
context:
space:
mode:
Diffstat (limited to 'rel/env.sh.eex')
-rw-r--r--rel/env.sh.eex18
1 files changed, 18 insertions, 0 deletions
diff --git a/rel/env.sh.eex b/rel/env.sh.eex
new file mode 100644
index 0000000..365fa18
--- /dev/null
+++ b/rel/env.sh.eex
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+# Sets and enables heart (recommended only in daemon mode)
+case $RELEASE_COMMAND in
+ daemon*)
+ export HEART_COMMAND="$RELEASE_ROOT/bin/$RELEASE_NAME $RELEASE_COMMAND"
+ export ELIXIR_ERL_OPTIONS="-heart"
+ ;;
+
+ *)
+ ;;
+esac
+
+# Set the release to work across nodes. If using the long name format like
+# the one below (my_app@127.0.0.1), you need to also uncomment the
+# RELEASE_DISTRIBUTION variable below.
+export RELEASE_DISTRIBUTION=name
+export RELEASE_NODE="<%= @release.name %>@0.0.0.0"