Imrove deployment reliability.
This commit is contained in:
parent
305c1afcbd
commit
55de36dadc
@ -5,7 +5,12 @@ cd "$(dirname "$0")"
|
|||||||
|
|
||||||
export DOCKER_HOST="ssh://ubuntu@$BTCPAY_FQDN"
|
export DOCKER_HOST="ssh://ubuntu@$BTCPAY_FQDN"
|
||||||
|
|
||||||
|
if [ "$STOP_SERVICES" = true ]; then
|
||||||
|
# run the update.
|
||||||
|
ssh "$FQDN" "bash -c $BTCPAY_SERVER_APPPATH/btcpay-down.sh"
|
||||||
|
else
|
||||||
./stub_btcpay_setup.sh
|
./stub_btcpay_setup.sh
|
||||||
|
fi
|
||||||
|
|
||||||
# we will re-run the btcpayserver provisioning scripts if directed to do so.
|
# we will re-run the btcpayserver provisioning scripts if directed to do so.
|
||||||
# if an update does occur, we grab another backup.
|
# if an update does occur, we grab another backup.
|
||||||
@ -16,7 +21,7 @@ if [ "$UPDATE_BTCPAY" = true ]; then
|
|||||||
# btcpay-update.sh brings services back up, but does not take them down.
|
# btcpay-update.sh brings services back up, but does not take them down.
|
||||||
ssh "$FQDN" "sudo bash -c $BTCPAY_SERVER_APPPATH/btcpay-update.sh"
|
ssh "$FQDN" "sudo bash -c $BTCPAY_SERVER_APPPATH/btcpay-update.sh"
|
||||||
|
|
||||||
sleep 20
|
sleep 30
|
||||||
|
|
||||||
elif [ "$RESTORE_BTCPAY" = true ]; then
|
elif [ "$RESTORE_BTCPAY" = true ]; then
|
||||||
# run the update.
|
# run the update.
|
||||||
|
@ -138,6 +138,9 @@ EOL
|
|||||||
done
|
done
|
||||||
|
|
||||||
if [ "$STOP_SERVICES" = false ]; then
|
if [ "$STOP_SERVICES" = false ]; then
|
||||||
|
# for some reason we need to wait here. See if there's a fix; poll for service readiness?
|
||||||
|
sleep 3
|
||||||
|
|
||||||
docker stack deploy -c "$DOCKER_YAML_PATH" reverse-proxy
|
docker stack deploy -c "$DOCKER_YAML_PATH" reverse-proxy
|
||||||
# iterate over all our domains and create the nginx config file.
|
# iterate over all our domains and create the nginx config file.
|
||||||
sleep 3
|
sleep 3
|
||||||
|
Loading…
Reference in New Issue
Block a user