spr migrated books, and tester

This commit is contained in:
buenosairesam
2025-12-31 09:07:27 -03:00
parent 21b8eab3cb
commit cccc6b5a93
136 changed files with 15763 additions and 472 deletions

View File

@@ -1,8 +1,8 @@
#!/bin/bash
# Deploy core_room to server
# Deploy mainroom to server (amar + soleprint)
#
# Two deployment modes:
# 1. Docker (default): Full core_room structure + source code
# 1. Docker (default): Full mainroom structure + source code
# 2. Bare metal (--bare-metal): Only soleprint source to systemd services
#
# Usage:
@@ -18,13 +18,13 @@ SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
source "$SCRIPT_DIR/.env.sync" 2>/dev/null || true
SERVER="${DEPLOY_SERVER:-mariano@mcrn.ar}"
REMOTE_PATH="${DEPLOY_REMOTE_PATH:-~/core_room}"
REMOTE_PATH="${DEPLOY_REMOTE_PATH:-~/mainroom}"
BARE_METAL_PATH="${DEPLOY_BARE_METAL_PATH:-~/soleprint}"
# Source code paths (defaults if not in .env.sync)
LOCAL_AMAR_BACKEND="${LOCAL_AMAR_BACKEND:-$HOME/wdir/ama/amar_django_back}"
LOCAL_AMAR_FRONTEND="${LOCAL_AMAR_FRONTEND:-$HOME/wdir/ama/amar_frontend}"
LOCAL_SOLEPRINT="${LOCAL_SOLEPRINT:-$HOME/wdir/ama/soleprint}"
LOCAL_SOLEPRINT="${LOCAL_SOLEPRINT:-$HOME/wdir/spr/gen}"
DRY_RUN=""
BARE_METAL=""
@@ -84,8 +84,8 @@ fi
echo "=== Deploying to Docker ==="
echo ""
# 1. Sync core_room structure (excluding src directories - they're synced separately)
echo "1. Syncing core_room structure..."
# 1. Sync mainroom structure (excluding src directories - they're synced separately)
echo "1. Syncing mainroom structure..."
$RSYNC_CMD $DRY_RUN \
--exclude='*/src/' \
./ \

View File

@@ -1,5 +1,5 @@
#!/bin/bash
# Start core_room services
# Start mainroom services (amar + soleprint)
#
# Usage:
# ./start.sh # Start all (foreground, see logs)
@@ -14,7 +14,7 @@ set -e
# Change to parent directory (services are in ../service_name)
cd "$(dirname "$0")/.."
# Export core_room/.env vars so child docker-compose files can use them
# Export mainroom/.env vars so child docker-compose files can use them
if [ -f ".env" ]; then
set -a
source .env
@@ -98,5 +98,5 @@ if [ -n "$DETACH" ]; then
echo ""
echo "=== Services Started ==="
echo ""
docker ps --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}" | grep -E "(core_room|NAMES)"
docker ps --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}" | grep -E "(mainroom|amar|soleprint|NAMES)"
fi