phase 4
This commit is contained in:
@@ -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'),
|
||||
],
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user