File size: 708 Bytes
bfaed46 f1bb76a bfaed46 457577d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
#!/bin/sh
# configure node for distributed erlang with IPV6 support
# For some reason, we need to disable `ERL_AFLAGS` and add `ELIXIR_ERL_OPTIONS` to be able to connect to this node from
# Livebook. See this forum post: https://community.fly.io/t/cant-connect-to-node/17800
# export ERL_AFLAGS="-proto_dist inet6_tcp"
export ELIXIR_ERL_OPTIONS="-proto_dist inet6_tcp"
export ECTO_IPV6="true"
export DNS_CLUSTER_QUERY="${FLY_APP_NAME}.internal"
export RELEASE_DISTRIBUTION="name"
# For ease of connecting from Livebook, we've removed `FLY_IMAGE_REF` from our node name.
# export RELEASE_NODE="${FLY_APP_NAME}-${FLY_IMAGE_REF##*-}@${FLY_PRIVATE_IP}"
export RELEASE_NODE="${FLY_APP_NAME}@${FLY_PRIVATE_IP}"
|