Production Deployment Guide
This document outlines the steps required for deploying the Satoshi Port application to production, covering the Smart Contract, Frontend, and Backend components.
Contract Deployment
Prerequisites
- Private Keys: You need the private keys to deploy a new smart contract. Ask Sibi or Michael for access.
Deployment Steps
- Trigger CI: Push a new tag to the
developbranch. - Obtain Artifact: Wait for the CI job to complete. It will produce a new WASM file for the smart contract (see an example release).
- Update Configuration: Update the contract version accordingly in the production.justfile.
- Deploy: Run the following command to deploy the newer version of the contract:
Note: Ensure you handle any necessary state migration upgrades if applicable.just prod::deploy
Frontend Deployment
Frontend deployment is managed using Cloudflare Pages.
- The
mainbranch serves as the source of truth for production. - To trigger a deployment, create a pull request for your changes to the
mainbranch.
Backend Deployment
Backend deployments are managed via the devops repository.
Deployment Steps
- Update the Docker image version in the kustomization.yaml file.
- The deployment should then be synced via K3s ArgoCD.
Monitoring & Operations
- Documentation: For more details, refer to the Kube360 cluster documentation.
- Alerts: You should join the
k3s-alertmangerSlack channel to monitor cluster alerts. Ask Sibi or Noris to be added to the channel.