Add instructions to update onboarding app and wallet deployments

This commit is contained in:
Prathamesh Musale 2024-08-09 14:53:21 +05:30
parent b89c5bbc3f
commit edf42a1f73
2 changed files with 99 additions and 6 deletions

View File

@ -142,7 +142,7 @@
* Stack: <https://git.vdb.to/cerc-io/testnet-onboarding-app-stack/src/branch/main/stack-orchestrator/stacks/onboarding-app> * Stack: <https://git.vdb.to/cerc-io/testnet-onboarding-app-stack/src/branch/main/stack-orchestrator/stacks/onboarding-app>
* Source repo: <git.vdb.to/cerc-io/testnet-onboarding-app> * Source repo: <https://git.vdb.to/cerc-io/testnet-onboarding-app>
* Target dir: `/srv/app/onboarding-app-deployment` * Target dir: `/srv/app/onboarding-app-deployment`
@ -256,7 +256,7 @@
* Stack: <https://git.vdb.to/cerc-io/laconic-wallet-web/src/branch/main/stack/stack-orchestrator/stack/laconic-wallet-web> * Stack: <https://git.vdb.to/cerc-io/laconic-wallet-web/src/branch/main/stack/stack-orchestrator/stack/laconic-wallet-web>
* Source repo: <git.vdb.to/cerc-io/laconic-wallet-web> * Source repo: <https://git.vdb.to/cerc-io/laconic-wallet-web>
* Target dir: `/srv/wallet/laconic-wallet-web-deployment` * 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 laconic-so deployment --dir laconic-wallet-web-deployment logs laconic-wallet-web -f
``` ```
* The wallet web app can now be viewed at <https://wallet.laconic.com> * The web wallet can now be viewed at <https://wallet.laconic.com>
</details> </details>
@ -556,8 +556,8 @@
* Stack: <https://git.vdb.to/cerc-io/testnet-laconicd-stack/src/branch/main/stack-orchestrator/stacks/laconic-console> * Stack: <https://git.vdb.to/cerc-io/testnet-laconicd-stack/src/branch/main/stack-orchestrator/stacks/laconic-console>
* Source repos: * Source repos:
* <git.vdb.to/cerc-io/laconic-registry-cli> * <https://git.vdb.to/cerc-io/laconic-registry-cli>
* <git.vdb.to/cerc-io/laconic-console> * <https://git.vdb.to/cerc-io/laconic-console>
* Target dir: `/srv/console/laconic-console-deployment` * Target dir: `/srv/console/laconic-console-deployment`

View File

@ -22,7 +22,7 @@ Instructions to reset / update the deployments
# laconicd source # laconicd source
cd ~/cerc/laconicd cd ~/cerc/laconicd
# Pull latest changes # Pull latest changes, or checkout to the required branch
git pull git pull
# Confirm the latest commit hash # Confirm the latest commit hash
@ -70,3 +70,96 @@ Instructions to reset / update the deployments
laconic-so deployment --dir laconic-faucet-deployment start 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, or checkout to the required branch
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 <<EOF > 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 <https://loro-signup.laconic.com>
## 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, or checkout to the required branch
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 <<EOF > 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 <https://wallet.laconic.com>