fix: quote RELEASE_NODE to prevent word splitting
Co-Authored-By: Graham McIntire <graham@mcintire.me>
This commit is contained in:
parent
0f32086933
commit
9d232b8368
1 changed files with 19 additions and 0 deletions
19
rel/env.sh.eex
Executable file
19
rel/env.sh.eex
Executable file
|
|
@ -0,0 +1,19 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ -n "$FLY_APP_NAME" ]; then
|
||||||
|
export DNS_CLUSTER_QUERY="${FLY_APP_NAME}.internal"
|
||||||
|
export RELEASE_NODE="${FLY_APP_NAME}-${FLY_IMAGE_REF##*-}@${FLY_PRIVATE_IP}"
|
||||||
|
# configure node for distributed erlang with IPV6 support
|
||||||
|
export ERL_AFLAGS="-proto_dist inet6_tcp"
|
||||||
|
export ECTO_IPV6="true"
|
||||||
|
fi
|
||||||
|
|
||||||
|
export RELEASE_DISTRIBUTION="name"
|
||||||
|
|
||||||
|
# Uncomment to send crash dumps to stderr
|
||||||
|
# This can be useful for debugging, but may log sensitive information
|
||||||
|
# export ERL_CRASH_DUMP=/dev/stderr
|
||||||
|
# export ERL_CRASH_DUMP_BYTES=4096
|
||||||
|
|
||||||
|
# when not running on fly.io, use a sensible default
|
||||||
|
export RELEASE_NODE="${RELEASE_NODE:-<%= @release.name %>@$(hostname)}"
|
||||||
Loading…
Add table
Reference in a new issue