Skip to content

Commit

Permalink
BE-682 Fix node access error in non-docker env
Browse files Browse the repository at this point in the history
Added the definition of DISCOVERY_AS_LOCALHOST to start.sh

Signed-off-by: Atsushi Neki <atsushin@fast.au.fujitsu.com>
Change-Id: I65939ffb97585cf720b858cfcdbe6e13110b6400
  • Loading branch information
nekia committed Jul 25, 2019
1 parent 8db6e4b commit d79a7b9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ From new terminal (if Sync Process in Standalone).
- `./syncstop.sh` (it will stop the sync node).

- If the Hyperledger Explorer was used previously in your browser be sure to clear the cache before relaunching.
- If Hyperledger Fabric network is deployed on other machine, please toggle DISCOVERY_AS_LOCALHOST in start.sh / syncstart.sh to 'false'.



Expand Down
1 change: 1 addition & 0 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ echo "**************************************************************************
echo "***** Please check the log [$LOG_CONSOLE_PATH] for any error *****"
echo "************************************************************************************"

export DISCOVERY_AS_LOCALHOST=true
node main.js name - hyperledger-explorer >>$LOG_CONSOLE_PATH 2>&1 &

find ./logs/app -mtime +7 -type f -delete & find ./logs/db -mtime +7 -type f -delete & find ./logs/console -mtime +7 -type f -delete
Expand Down
1 change: 1 addition & 0 deletions syncstart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ echo "**************************************************************************
echo "***** Please check the log [$SYNC_LOG_CONSOLE_PATH] for any error *****"
echo "************************************************************************************"

export DISCOVERY_AS_LOCALHOST=true
node sync.js $1 $2 >>$SYNC_LOG_CONSOLE_PATH 2>&1 &

find $SYNC_LOG_PATH/app -mtime +7 -type f -delete & find $SYNC_LOG_PATH/db -mtime +7 -type f -delete & find $SYNC_LOG_PATH/console -mtime +7 -type f -delete
Expand Down

0 comments on commit d79a7b9

Please sign in to comment.