mirror of
https://github.com/ClaperCo/Claper.git
synced 2025-12-29 00:25:02 +01:00
22 lines
666 B
Elixir
22 lines
666 B
Elixir
#!/bin/sh
|
|
|
|
# Sets and enables heart (recommended only in daemon mode)
|
|
# case $RELEASE_COMMAND in
|
|
# daemon*)
|
|
# HEART_COMMAND="$RELEASE_ROOT/bin/$RELEASE_NAME $RELEASE_COMMAND"
|
|
# export HEART_COMMAND
|
|
# export ELIXIR_ERL_OPTIONS="-heart"
|
|
# ;;
|
|
# *)
|
|
# ;;
|
|
# esac
|
|
|
|
# Set the release to work across nodes.
|
|
# RELEASE_DISTRIBUTION must be "sname" (local), "name" (distributed) or "none".
|
|
#export RELEASE_DISTRIBUTION=sname
|
|
#export RELEASE_NODE=<%= @release.name %>
|
|
|
|
export POD_A_RECORD=$(echo $POD_IP | sed 's/\./-/g')
|
|
export RELEASE_DISTRIBUTION=name
|
|
export RELEASE_NODE=<%= @release.name %>@$(echo $POD_A_RECORD).$(echo $NAMESPACE).pod.cluster.local
|