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:
parent
25080f1a33
commit
a12e7a2e33
10
net/net.sh
10
net/net.sh
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue