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 exit 1
} }
start() { prepare_deploy() {
case $deployMethod in case $deployMethod in
tar) tar)
if [[ -n $releaseChannel ]]; then if [[ -n $releaseChannel ]]; then
@ -585,7 +585,9 @@ start() {
usage "Internal error: invalid deployMethod: $deployMethod" usage "Internal error: invalid deployMethod: $deployMethod"
;; ;;
esac esac
}
deploy() {
echo "Deployment started at $(date)" echo "Deployment started at $(date)"
if $updateNodes; then if $updateNodes; then
$metricsWriteDatapoint "testnet-deploy net-update-begin=1" $metricsWriteDatapoint "testnet-deploy net-update-begin=1"
@ -754,11 +756,13 @@ stop() {
case $command in case $command in
restart) restart)
prepare_deploy
stop stop
start deploy
;; ;;
start) start)
start prepare_deploy
deploy
;; ;;
update) update)
skipSetup=true skipSetup=true