Separate build and deploy steps in net/net.sh (#5184)

So one can keep the network up while a new experiment is building
This commit is contained in:
sakridge 2019-07-18 18:59:47 -07:00 committed by GitHub
parent 25080f1a33
commit a12e7a2e33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 3 deletions

View File

@ -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