noahsettersten commited on
Commit
f1bb76a
1 Parent(s): f99fca0

fix: Environment settings to connect from Livebook

Browse files
Files changed (1) hide show
  1. rel/env.sh.eex +5 -1
rel/env.sh.eex CHANGED
@@ -1,7 +1,11 @@
1
  #!/bin/sh
2
 
3
  # configure node for distributed erlang with IPV6 support
4
- export ERL_AFLAGS="-proto_dist inet6_tcp"
 
 
 
 
5
  export ECTO_IPV6="true"
6
  export DNS_CLUSTER_QUERY="${FLY_APP_NAME}.internal"
7
  export RELEASE_DISTRIBUTION="name"
 
1
  #!/bin/sh
2
 
3
  # configure node for distributed erlang with IPV6 support
4
+
5
+ # For some reason, we need to disable `ERL_AFLAGS` and add `ELIXIR_ERL_OPTIONS` to be able to connect to this node from
6
+ # Livebook. See this forum post: https://community.fly.io/t/cant-connect-to-node/17800
7
+ # export ERL_AFLAGS="-proto_dist inet6_tcp"
8
+ export ELIXIR_ERL_OPTIONS="-proto_dist inet6_tcp"
9
  export ECTO_IPV6="true"
10
  export DNS_CLUSTER_QUERY="${FLY_APP_NAME}.internal"
11
  export RELEASE_DISTRIBUTION="name"