File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ GRISPAPP ?= $(shell basename `find src -name "*.app.src"` .app.src)
1818REBAR_CONFIG = $(CURDIR ) /rebar.config
1919COOKIE ?= MyCookie
2020NAME := $(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
2324PRE = @
2425POST =
@@ -76,7 +77,7 @@ compile:
7677shell :
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
8182deploy :
8283 @ echo Deploying
You can’t perform that action at this time.
0 commit comments