diff --git a/ops/update-deployments.md b/ops/update-deployments.md index 3bfd3b1..3516a5a 100644 --- a/ops/update-deployments.md +++ b/ops/update-deployments.md @@ -254,3 +254,88 @@ Instructions to reset / update the deployments ``` * The laconic console can now be viewed at + +## Fixturenet Eth + +* Stack: + +* Target dir: `/srv/fixturenet-eth/fixturenet-eth-deployment` + +* If code has changed, fetch and build with updated source code: + + ```bash + cd ~/cerc/fixturenet-eth-stacks + + # Pull latest changes, or checkout to the required branch + git pull + + # Confirm the latest commit hash + git log + + # Rebuild the containers + cd /srv/fixturenet-eth + + laconic-so --stack ~/cerc/fixturenet-eth-stacks/stack-orchestrator/stacks/fixturenet-eth build-containers --force-rebuild + ``` + +* Update the configuration, if required in `fixturenet-eth-deployment/config.env` + + ```bash + CERC_ALLOW_UNPROTECTED_TXS=true + ``` + +* Restart the deployment: + + ```bash + laconic-so deployment --dir fixturenet-eth-deployment stop + + laconic-so deployment --dir fixturenet-eth-deployment start + ``` + +## Nitro Bridge + +* Stack: + +* Target dir: `/srv/bridge/bridge-deployment` + +* Rebuild containers: + + ```bash + # Rebuild the containers + cd /srv/bridge + + laconic-so --stack ~/cerc/nitro-stack/stack-orchestrator/stacks/bridge build-containers --force-rebuild + ``` + +* Restart the bridge deployment + + ```bash + laconic-so deployment --dir bridge-deployment stop + + laconic-so deployment --dir bridge-deployment start + ``` + +## Laconic Shopify + +* Stack: + +* Target dir: `/srv/shopify/laconic-shopify-deployment` + +* If code has changed, fetch and build with updated source code: + + ```bash + laconic-so --stack ~/cerc/testnet-laconicd-stack/stack-orchestrator/stacks/laconic-shopify setup-repositories --pull --git-ssh --pull + + # rebuild containers + laconic-so --stack ~/cerc/testnet-laconicd-stack/stack-orchestrator/stacks/laconic-shopify build-containers --force-rebuild + ``` + +* Restart the deployment + + ```bash + cd /srv/shopify + + laconic-so deployment --dir laconic-shopify-deployment stop + + laconic-so deployment --dir laconic-shopify-deployment start + ```