#!/bin/bash # rsync-deploy scenegod to the dealgod VPS (NOT a git checkout there — meshgod model). # NOTE: assets/ is EXCLUDED on purpose (it lives in the VPS volume). Templates and # sequences ship with the code, so after adding an asset one of them references: # rsync -az assets/ root@100.94.195.115:/opt/scenegod-data/assets/ set -e VPS=root@100.94.195.115 rsync -az --delete \ --exclude .git --exclude .venv --exclude assets --exclude scenes \ --exclude renders --exclude films --exclude '*.pyc' --exclude __pycache__ \ --exclude .env --exclude '*.log' \ "$(cd "$(dirname "$0")/.." && pwd)/" "$VPS":/opt/scenegod/ ssh "$VPS" 'mkdir -p /opt/scenegod-data/{assets,scenes,renders,sequences,films} && cd /opt/scenegod/deploy && docker compose up -d --build'