Skip to content

Commit

Permalink
Adding possibility of passing the RELEASE_COOKIE via ENV VAR to allow…
Browse files Browse the repository at this point in the history
… /bin/calori remote connections
  • Loading branch information
thiagoesteves committed May 24, 2024
1 parent 5d97c0d commit f783269
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rel/env.sh.eex
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ export ELIXIR_ERL_OPTIONS="-proto_dist inet_tls -ssl_dist_optfile /tmp/inet_tls.
# export RELEASE_DISTRIBUTION=name
# export RELEASE_NODE=<%= @release.name %>

export RELEASE_COOKIE="cookie"
# The Erlang cookie value is expected to be sourced by AWS and the next line
# defines it if not passed to allow ./bin/app remote to use RELEASE_COOKIE
[ -z ${RELEASE_COOKIE} ] && export RELEASE_COOKIE="cookie"
export RELEASE_DISTRIBUTION=sname
export RELEASE_NODE=<%= @release.name %>

0 comments on commit f783269

Please sign in to comment.