This commit is contained in:
2026-03-30 07:22:14 -03:00
parent d0707333fd
commit 4220b0418e
182 changed files with 3668 additions and 5231 deletions

View File

@@ -18,7 +18,7 @@ docker_build(
'mpr-fastapi',
context='..',
dockerfile='Dockerfile',
ignore=['.git', 'def', 'docs', 'media', 'ui', 'gpu', 'modelgen', '.claude', 'tests'],
ignore=['.git', 'def', 'docs', 'media', 'ui', 'modelgen', '.claude', 'tests'],
live_update=[
sync('..', '/app'),
],

View File

@@ -1,9 +1,9 @@
#!/bin/bash
# Sync gpu/ folder to the GPU machine
# Sync core/gpu/ folder to the GPU machine
# Usage: ./ctrl/sync.sh [HOST] [DEST]
#
# Examples:
# ./ctrl/sync.sh # defaults: mcrn:~/mpr/gpu
# ./ctrl/sync.sh # defaults: mcrndeb:~/wdir/mpr/gpu
# ./ctrl/sync.sh 192.168.1.3 # custom host
# ./ctrl/sync.sh mcrn ~/inference # custom host + dest
@@ -13,11 +13,11 @@ cd "$(dirname "$0")/.."
HOST="${1:-mcrndeb}"
DEST="${2:-~/wdir/mpr/gpu}"
echo "Syncing gpu/ to ${HOST}:${DEST}..."
echo "Syncing core/gpu/ to ${HOST}:${DEST}..."
rsync -avz --exclude='.git' --exclude='__pycache__' \
--exclude='*.pyc' --exclude='.env' \
--filter=':- .gitignore' \
gpu/ "${HOST}:${DEST}/"
core/gpu/ "${HOST}:${DEST}/"
echo "Done. Run on ${HOST}:"
echo " cd ${DEST} && cp .env.template .env && ./run.sh"