Skip to content

Commit

Permalink
More verbose start
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardonunesp committed Aug 10, 2018
1 parent 57ec738 commit 5312e35
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions transfer_gateway
Original file line number Diff line number Diff line change
Expand Up @@ -57,27 +57,28 @@ function is_setup_already {

# Setup function does the first work of download node_packages and loom binary
function setup {
echo "Installing ..."
echo "Installing necessary packages, this can take up to 3 minutes (depending on internet speed) ..."
cd webclient
echo "Install Webclient"
echo "Install Webclient (node_packages)"
yarn
cd ../truffle-dappchain
echo "Install DappChain"
echo "Install DappChain (node_packages)"
yarn
cd ../truffle-ethereum
echo "Install Truffle Ethereum"
echo "Install Truffle Ethereum (node_packages)"
yarn
cd ../transfer-gateway-scripts
echo "Install Transfer Gateway Scripts"
echo "Install Transfer Gateway Scripts (node_packages)"
yarn
cd ../dappchain
echo "Install DappChain"
echo "Install DappChain (loomchain binary)"
wget "https://private.delegatecall.com/loom/$platform/build-$build_number/loom"
chmod +x loom
./loom init -f
sleep 5
cp genesis.example.json genesis.json
cd ..
echo "Done, packages installed with success"
}

function start_and_deploy_truffle_ethereum {
Expand Down Expand Up @@ -197,6 +198,10 @@ status)
[[ $(check_file_exists webclient/webclient.pid) = 1 ]] && echo "Webclient running" || echo "Webclient stopped"
;;
start)
echo "Initializing background services, it can take take (40 seconds) ..."
echo "-------------------------------------------------------------------"
echo

if [ $(is_setup_already) = 0 ]; then
echo "Use the setup command first"
exit -1
Expand All @@ -222,6 +227,10 @@ start)
deploy_truffle_dappchain
run_mapping
start_webapp

echo
echo "-------------------------------------------------------------"
echo "Services initialized and ready, check http:\/\/localhost:8080"
;;
stop)
stop_webdapp
Expand Down

0 comments on commit 5312e35

Please sign in to comment.