-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from keep-network/keep-dashboard-install
Added scripts for Keep Dashboard installation
- Loading branch information
Showing
4 changed files
with
80 additions
and
1 deletion.
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,53 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
LOG_START='\n\e[1;36m' # new line + bold + color | ||
LOG_END='\n\e[0m' # new line + reset color | ||
DONE_START='\n\e[1;32m' # new line + bold + green | ||
DONE_END='\n\n\e[0m' # new line + reset | ||
|
||
WORKDIR=$PWD | ||
|
||
printf "${LOG_START}Starting Keep Dashboard deployment...${LOG_END}" | ||
|
||
printf "${LOG_START}Preparing keep-core artifacts...${LOG_END}" | ||
|
||
cd $WORKDIR/keep-core/solidity | ||
ln -sf build/contracts artifacts | ||
|
||
printf "${LOG_START}Preparing keep-ecdsa artifacts...${LOG_END}" | ||
|
||
cd $WORKDIR/keep-ecdsa/solidity | ||
ln -sf build/contracts artifacts | ||
|
||
printf "${LOG_START}Preparing tBTC artifacts...${LOG_END}" | ||
|
||
cd $WORKDIR/tbtc/solidity | ||
ln -sf build/contracts artifacts | ||
|
||
printf "${LOG_START}Install Keep Dashboard dependencies...${LOG_END}" | ||
|
||
cd $WORKDIR/keep-core/solidity/dashboard | ||
|
||
npm install | ||
|
||
printf "${LOG_START}Updating Keep Dashboard dependnecies...${LOG_END}" | ||
|
||
cd $WORKDIR/keep-core/solidity | ||
npm link | ||
|
||
cd $WORKDIR/keep-ecdsa/solidity | ||
npm link | ||
|
||
cd $WORKDIR/tbtc/solidity | ||
npm link | ||
|
||
printf "${LOG_START}Updating Keep Dashboard configuration...${LOG_END}" | ||
|
||
cd $WORKDIR/keep-core/solidity/dashboard | ||
npm link @keep-network/keep-core | ||
npm link @keep-network/keep-ecdsa | ||
npm link @keep-network/tbtc | ||
|
||
printf "${DONE_START}Keep Dashboard initialized successfully!${DONE_END}" |
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,16 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
LOG_START='\n\e[1;36m' # new line + bold + color | ||
LOG_END='\n\e[0m' # new line + reset color | ||
DONE_START='\n\e[1;32m' # new line + bold + green | ||
DONE_END='\n\n\e[0m' # new line + reset | ||
|
||
WORKDIR=$PWD | ||
|
||
printf "${LOG_START}Starting Keep Dashboard...${LOG_END}" | ||
|
||
cd $WORKDIR/keep-core/solidity/dashboard | ||
|
||
npm run start |