forked from hyperledger-labs/blockchain-explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Two small tweaks for ease of use (hyperledger-labs#300)
* Print server running/stopped messages That wasn't clear from docs or the 'running commentary' Signed-off-by: Jacob Kopczynski <[email protected]> * Export explorerconfig.json Signed-off-by: Jacob Kopczynski <[email protected]>
- Loading branch information
Showing
3 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
echo "should be sourced" | ||
jq . ./explorerconfig.json >/dev/null | ||
|
||
export DATABASE_HOST=$(jq -r '.postgreSQL.host' ./explorerconfig.json) | ||
export DATABASE_PORT=$(jq -r '.postgreSQL.port' ./explorerconfig.json) | ||
export DATABASE_USERNAME=$(jq -r '.postgreSQL.username' ./explorerconfig.json) | ||
export DATABASE_DATABASE=$(jq -r '.postgreSQL.database' ./explorerconfig.json) | ||
export DATABASE_PASSWD=$(jq -r '.postgreSQL.passwd' ./explorerconfig.json) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters