diff --git a/ops/update-deployments.md b/ops/update-deployments.md index 3516a5a..7ffe6b2 100644 --- a/ops/update-deployments.md +++ b/ops/update-deployments.md @@ -264,17 +264,9 @@ Instructions to reset / update the deployments * 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 + laconic-so --stack ~/cerc/fixturenet-eth-stacks/stack-orchestrator/stacks/fixturenet-eth setup-repositories --git-ssh --pull # Rebuild the containers - cd /srv/fixturenet-eth - laconic-so --stack ~/cerc/fixturenet-eth-stacks/stack-orchestrator/stacks/fixturenet-eth build-containers --force-rebuild ``` @@ -287,6 +279,8 @@ Instructions to reset / update the deployments * Restart the deployment: ```bash + cd /srv/fixturenet-eth + laconic-so deployment --dir fixturenet-eth-deployment stop laconic-so deployment --dir fixturenet-eth-deployment start @@ -324,12 +318,14 @@ Instructions to reset / update the deployments * 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 + laconic-so --stack ~/cerc/testnet-laconicd-stack/stack-orchestrator/stacks/laconic-shopify setup-repositories --git-ssh --pull # rebuild containers laconic-so --stack ~/cerc/testnet-laconicd-stack/stack-orchestrator/stacks/laconic-shopify build-containers --force-rebuild ``` +* Update `laconic-shopify-deployment/config.env` if required + * Restart the deployment ```bash @@ -339,3 +335,34 @@ Instructions to reset / update the deployments laconic-so deployment --dir laconic-shopify-deployment start ``` + +## Backend Deployment + +* Stack: + +* Target dir: `/srv/deploy-backend/backend-deployment` + +* If code has changed, fetch and build with updated source code: + + ```bash + laconic-so --stack ~/cerc/snowballtools-base-api-stack/stack-orchestrator/stacks/snowballtools-base-backend setup-repositories --git-ssh --pull + + # rebuild containers + laconic-so --stack ~/cerc/snowballtools-base-api-stack/stack-orchestrator/stacks/snowballtools-base-backend build-containers --force-rebuild + ``` + +* Update `backend-deployment/configmaps/config/prod.toml` if required + +* Restart the deployment + + ```bash + cd /srv/deploy-backend/backend-deployment + + laconic-so deployment --dir backend-deployment stop + + laconic-so deployment --dir backend-deployment start + ``` + +## Frontend Deployment + +Follow steps from [deployments-from-scratch.md](./deployments-from-scratch.md#deploy-frontend) to deploy the snowball frontend diff --git a/testnet-nitro-node.md b/testnet-nitro-node.md index 05af47d..4069bbe 100644 --- a/testnet-nitro-node.md +++ b/testnet-nitro-node.md @@ -728,6 +728,28 @@ Perform swaps using a swap channel created with another Nitro node over the mirr # ] ``` +## Update nitro nodes + +Run the following commands in the deployment machine + +* Rebuild containers + + ```bash + laconic-so --stack ~/cerc/nitro-stack/stack-orchestrator/stacks/nitro-node build-containers --force-rebuild + ``` + +* Restart the nodes + + ```bash + cd + + laconic-so deployment --dir l1-nitro-deployment stop + laconic-so deployment --dir l1-nitro-deployment start + + laconic-so deployment --dir l2-nitro-deployment stop + laconic-so deployment --dir l2-nitro-deployment start + ``` + ## Clean up * Switch to deployments dir: