# Update Deployments Instructions to reset / update the deployments ## Login * Log in as `dev` user on the deployments VM * All the deployments are placed in the `/srv` directory: ```bash cd /srv ``` ## laconic-wallet-web * Deployment dir: `/srv/wallet/laconic-wallet-web-deployment` * If code has changed, fetch and build with updated source code: ```bash # testnet-onboarding-app source cd ~/cerc/laconic-wallet-web # Fetch from remote git fetch # Checkout to the latest tag (https://git.vdb.to/LaconicNetwork/laconic-wallet-web/tags) git checkout # 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 `laconic-wallet-web-deployment/config.env`: ```bash # URL for the deploy app so that wallet can work with it CERC_ALLOWED_URLS=https://deploy.laconic.com,https://store.laconic.com ``` * 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 ## laconic-console * Deployment dir: `/srv/console/laconic-console-testnet2-deployment` * Set deployment directory in a variable: ```bash CONSOLE_DEPLOYMENT=/srv/console/laconic-console-testnet2-deployment ``` * Update the configuration: ```bash nano $CONSOLE_DEPLOYMENT/config.env ``` ```bash # Laconicd (hosted) GQL endpoint LACONIC_HOSTED_ENDPOINT=https://laconicd-mainnet.laconic.com # laconicd chain id CERC_LACONICD_CHAIN_ID=laconic-mainnet ``` * Restart the deployment: ```bash laconic-so deployment --dir $CONSOLE_DEPLOYMENT stop laconic-so deployment --dir $CONSOLE_DEPLOYMENT start # Follow logs for console container laconic-so deployment --dir $CONSOLE_DEPLOYMENT logs console -f ``` * The laconic console can now be viewed at --- ## Laconic Shopify * Deployment 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 --git-ssh --pull # rebuild containers laconic-so --stack ~/cerc/testnet-laconicd-stack/stack-orchestrator/stacks/laconic-shopify build-containers --force-rebuild ``` * Update the configuration if required in `laconic-shopify-deployment/config.env`: ```bash # laconicd RPC endpoint CERC_LACONICD_RPC_ENDPOINT=https://laconicd-mainnet.laconic.com # laconicd chain id CERC_LACONICD_CHAIN_ID=laconic-mainnet ``` * Update the code for shopify app in [theme/sections/main-product.liquid](https://git.vdb.to/cerc-io/shopify/pulls/13/files#diff-971bd0e0a616c3feaecf3205ac98a23296a5a0d7) to use the correct chain ID ```bash ...