This guide explains how to update SnailyCADv4 to a new version.
First, shut down the CAD.
This can be done by pressing
CTRL+C in the Command Prompt for standalone installations or
docker-compose down for Docker installations
There are 2 ways of updating SnailyCADv4:
- If there are things that need to be updated in the
.envfile. Please update this before running the command.
- Make sure that you're in the root of the SnailyCADv4 folder.
Simply run the command below. This will run all the commands of the manual way.
curl https://raw.githubusercontent.com/SnailyCAD/autoupdater/main/dist/index.js > script.js
To start SnailyCAD see below
Updating local code
First we must update our local code:
git pull origin main
Secondly, we must update dependencies that might've changes from the last release. To do so, run the following command:
If there's something that needs to be changed in the .env file, make sure to do that properly. View the guide here
Now we must build all the packages & apps again. (client, schemas, config, types)
yarn turbo run build
To bring the CAD back up run the following command:
docker-compose -f production.docker-compose.yml up -d
yarn run concurrently "yarn workspace @snailycad/client start" "yarn workspace @snailycad/api generate && yarn workspace @snailycad/api start"