From 72234fa588fd10bfe210a62a842fb0eb2587cbeb Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Mon, 7 Jul 2025 16:48:56 -0500 Subject: [PATCH] add erlang cookie --- rel/env.sh.eex | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/rel/env.sh.eex b/rel/env.sh.eex index 32ddfa9..a836d09 100644 --- a/rel/env.sh.eex +++ b/rel/env.sh.eex @@ -14,10 +14,11 @@ # # Set the release to load code on demand (interactive) instead of preloading (embedded). # export RELEASE_MODE=interactive -# # Set the release to work across nodes. -# # RELEASE_DISTRIBUTION must be "sname" (local), "name" (distributed) or "none". -# export RELEASE_DISTRIBUTION=name -# export RELEASE_NODE=<%= @release.name %> +# Set the release to work across nodes. +# RELEASE_DISTRIBUTION must be "sname" (local), "name" (distributed) or "none". +export RELEASE_DISTRIBUTION=name +export RELEASE_NODE=<%= @release.name %>@${DOKKU_APP_NAME:-aprsme}-${DOKKU_APP_INSTANCE:-1}.${DOKKU_APP_NAME:-aprsme} +export RELEASE_COOKIE=${RELEASE_COOKIE:-Euta32aoLfgADYz3TiSCpQP0Y3iD7AD3zu0ycYWI5lQ=} #ip=$(grep fly-local-6pn /etc/hosts | cut -f 1) #export RELEASE_DISTRIBUTION=name