Skip to content

Commit 22e56da

Browse files
committed
makefile
1 parent 396ab31 commit 22e56da

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ GRISPAPP ?= $(shell basename `find src -name "*.app.src"` .app.src)
1818
REBAR_CONFIG = $(CURDIR)/rebar.config
1919
COOKIE ?= MyCookie
2020
NAME := $(shell hostname -s)
21-
PEER_IP := $(shell ifconfig | grep "inet " | grep -m 1 -Fv 127.0.0.1 | awk '{print $2}' | sed 's/\./,/g')
21+
PEER_IP := $(ifconfig | grep 'inet ' | grep -m 1 -Fv 127.0.0.1 | awk '{print $2}' | sed 's/\./,/g')
22+
IP := $(ifconfig | grep 'inet ' | grep -m 1 -Fv 127.0.0.1 | awk '{print $2}')
2223

2324
PRE = @
2425
POST =
@@ -76,7 +77,7 @@ compile:
7677
shell:
7778
@ echo Launching shell
7879
$(PRE) \
79-
NAME=$(NAME) PEER_IP=$(PEER_IP) $(REBAR) as test shell --sname $(GRISPAPP)$(n) --setcookie $(COOKIE) --apps $(GRISPAPP) $(POST)
80+
NAME=$(NAME) PEER_IP=$(PEER_IP) IP=$(IP) $(REBAR) as test shell --sname $(GRISPAPP)$(n) --setcookie $(COOKIE) --apps $(GRISPAPP) $(POST)
8081

8182
deploy:
8283
@ echo Deploying

0 commit comments

Comments
 (0)