Other management operations
Upgrade Cousins Matter
Section titled “Upgrade Cousins Matter”In production
Section titled “In production”Pull the latest image and restart the container
cd cousins-matterdocker compose pulldocker compose up -dRebuild image from source
Section titled “Rebuild image from source”See how to build from source for the 1rst time here. To update your image from source, just do:
git pull # refresh sourcesuv sync # sync dependenciesmake build # build the imagemake up # restart the services (this rebuild the image before restarting)# alternatively to the last line:make up4run # restart the other services, but cousins-mattermake run # start cousins-matter only outside docker (useful for debugging)Rotate your secret key
Section titled “Rotate your secret key”From time to time (e.g. once a month), you should rotate the Cousins Matter secret key. To do so, run the following command:
./manage_cousins_matter.sh rotate-secretsThis command will rotate the secret key and update the PREVIOUS_SECRET_KEYS in the .env file.
As Cousins Matter cannot change itself its secret key, you will need to restart the Cousins Matter containers to apply the new secret key.
To do so, run the following command:
docker compose up -d --force-recreate