Skip to content

Commit

Permalink
fix: add default for ip var in env.sh.eex
Browse files Browse the repository at this point in the history
  • Loading branch information
w3b6x9 committed Nov 15, 2022
1 parent d8142d6 commit ef00fe8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rel/env.sh.eex
Expand Up @@ -5,5 +5,9 @@
# RELEASE_DISTRIBUTION variable below. Must be "sname", "name" or "none".

ip=$(grep fly-local-6pn /etc/hosts | cut -f 1)
if [ -z $ip ]
then
ip=127.0.0.1
fi
export RELEASE_DISTRIBUTION=name
export RELEASE_NODE=$FLY_APP_NAME@$ip

0 comments on commit ef00fe8

Please sign in to comment.