Updating Strix
As Project Strix is continuously developed, you may want to pull the latest changes, features, and security patches from the GitHub repository to your production server.
The Auto-Deployer Method
The easiest and safest way to update your Strix deployment is to use the exact same script you used to install it:
- For Native Linux hosts:
runner/host/deploy.py - For Podman / Containers:
runner/podman/deploy.py
- SSH into your server.
- Navigate to your installation directory:bash
cd ~/ProjectStrix - Fetch the latest code from the main branch and reset your local copy:bash
sudo git fetch origin sudo git reset --hard origin/main - Run the auto-deployer script:bash
# For Host / PM2: sudo python3 runner/host/deploy.py # Or for Podman: python3 runner/podman/deploy.py
The script will:
- Check for Python/Node/System dependencies.
- Fix broken
dpkgor missing locales automatically. - Re-run
npm installandnpm run buildfor the Next.js app. - Apply new
prisma db pushmigrations. - Gracefully restart the PM2 processes or containers.
Important Note on Data Loss
Using runner/host/deploy.py will run npx prisma db push --accept-data-loss. In development phases, this is perfectly fine. However, if structural schema changes occur that delete tables or columns, this command could result in data loss for those specific columns. Always back up your PostgreSQL database (bash runner/host/backup.sh) before updating critical production environments!