From a12e7a2e331c8f2d0a79ab2a61e6028ca309e735 Mon Sep 17 00:00:00 2001 From: sakridge Date: Thu, 18 Jul 2019 18:59:47 -0700 Subject: [PATCH] Separate build and deploy steps in net/net.sh (#5184) So one can keep the network up while a new experiment is building --- net/net.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/net/net.sh b/net/net.sh index dfbda6ba88..ecc1296a61 100755 --- a/net/net.sh +++ b/net/net.sh @@ -553,7 +553,7 @@ getNodeType() { exit 1 } -start() { +prepare_deploy() { case $deployMethod in tar) if [[ -n $releaseChannel ]]; then @@ -585,7 +585,9 @@ start() { usage "Internal error: invalid deployMethod: $deployMethod" ;; esac +} +deploy() { echo "Deployment started at $(date)" if $updateNodes; then $metricsWriteDatapoint "testnet-deploy net-update-begin=1" @@ -754,11 +756,13 @@ stop() { case $command in restart) + prepare_deploy stop - start + deploy ;; start) - start + prepare_deploy + deploy ;; update) skipSetup=true