Skip to main content

Docker

Find out how to update SnailyCADv4 manually when using the docker installation method.

1. Shut down SnailyCAD​

First, shut down your SnailyCAD instance, to do so run the following command:

docker compose -f production.docker-compose.yml down

2. Update local code​

First we must update our local code:

git pull origin main
warning

If you encounter any merge conflicts, please resolve them before continuing.

This can be done by backing up any locale changes you've made including apps/client/i18n.config.mjs. Then you can safely run the following command:

git stash && git pull origin main

3. Update dependencies​

Secondly, we must update dependencies that might've changes from the last release. To do so, run the following command:

pnpm install

4. Configuration​

If there's something that needs to be changed in the .env file, make sure to do that properly. View the guide here

5. Rebuild everything​

Now we must build all the packages & apps again. (client, schemas, config, types)

docker compose -f production.docker-compose.yml build

6. Start SnailyCAD​

To bring the CAD back up run the following command:

docker compose -f production.docker-compose.yml up -d

Was this page helpful?