From 3fed6ba7692708e441684415cb40d9b08b7b2afb Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Fri, 9 Aug 2024 14:53:21 +0530 Subject: [PATCH] Add instructions to update onboarding app and wallet deployments --- ops/deployments-from-scratch.md | 10 ++-- ops/update-deployments.md | 93 +++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+), 5 deletions(-) diff --git a/ops/deployments-from-scratch.md b/ops/deployments-from-scratch.md index aa71275..c9e7c22 100644 --- a/ops/deployments-from-scratch.md +++ b/ops/deployments-from-scratch.md @@ -142,7 +142,7 @@ * Stack: -* Source repo: +* Source repo: * Target dir: `/srv/app/onboarding-app-deployment` @@ -256,7 +256,7 @@ * Stack: -* Source repo: +* Source repo: * Target dir: `/srv/wallet/laconic-wallet-web-deployment` @@ -344,7 +344,7 @@ laconic-so deployment --dir laconic-wallet-web-deployment logs laconic-wallet-web -f ``` -* The wallet web app can now be viewed at +* The web wallet can now be viewed at @@ -556,8 +556,8 @@ * Stack: * Source repos: - * - * + * + * * Target dir: `/srv/console/laconic-console-deployment` diff --git a/ops/update-deployments.md b/ops/update-deployments.md index 9fcbf42..2ae790f 100644 --- a/ops/update-deployments.md +++ b/ops/update-deployments.md @@ -70,3 +70,96 @@ Instructions to reset / update the deployments laconic-so deployment --dir laconic-faucet-deployment start ``` + +## testnet-onboarding-app + +* Deployment dir: `/srv/app/onboarding-app-deployment` + +* Fetch and build with updated source code: + + ```bash + # testnet-onboarding-app source + cd ~/cerc/testnet-onboarding-app + + # Pull latest changes + git pull + + # Confirm the latest commit hash + git log + + # Rebuild the containers + cd /srv/app + + laconic-so --stack ~/cerc/testnet-onboarding-app-stack/stack-orchestrator/stacks/onboarding-app build-containers --force-rebuild + ``` + +* Update the configuration if required: + + ```bash + cat < laconic-console-deployment/config.env + WALLET_CONNECT_ID=63... + + CERC_REGISTRY_GQL_ENDPOINT="https://laconicd.laconic.com/api" + CERC_LACONICD_RPC_ENDPOINT="https://laconicd.laconic.com" + + CERC_FAUCET_ENDPOINT="https://faucet.laconic.com" + + CERC_WALLET_META_URL="https://loro-signup.laconic.com" + EOF + ```` + +* Restart the deployment: + + ```bash + laconic-so deployment --dir onboarding-app-deployment stop + + laconic-so deployment --dir onboarding-app-deployment start + + # Follow logs for testnet-onboarding-app container, wait for the build to finish + laconic-so deployment --dir onboarding-app-deployment logs testnet-onboarding-app -f + ``` + +* The updated onboarding app can now be viewed at + +## laconic-wallet-web + +* Deployment dir: `/srv/wallet/laconic-wallet-web-deployment` + +* Fetch and build with updated source code: + + ```bash + # testnet-onboarding-app source + cd ~/cerc/laconic-wallet-web + + # Pull latest changes + git pull + + # Confirm the latest commit hash + git log + + # Rebuild the containers + cd /srv/wallet + + laconic-so --stack ~/cerc/laconic-wallet-web/stack/stack-orchestrator/stack/laconic-wallet-web build-containers --force-rebuild + ``` + +* Update the configuration if required: + + ```bash + cat < laconic-wallet-web-deployment/config.env + WALLET_CONNECT_ID=63... + EOF + ``` + +* Restart the deployment: + + ```bash + laconic-so deployment --dir laconic-wallet-web-deployment stop + + laconic-so deployment --dir laconic-wallet-web-deployment start + + # Follow logs for laconic-wallet-web container, wait for the build to finish + laconic-so deployment --dir laconic-wallet-web-deployment logs laconic-wallet-web -f + ``` + +* The web wallet can now be viewed at