refractor code,

This commit is contained in:
root
2026-05-21 12:35:49 -04:00
parent e74681e810
commit f009ca10c6
158 changed files with 215801 additions and 5884 deletions
+11
View File
@@ -9,6 +9,17 @@ mkdir -p "$STATE_DIR"
echo "[migrate] Generating database client"
npm run db:generate
STORAGE_ROOT="${FILE_STORAGE_ROOT:-}"
LEGACY_STORAGE_ROOT="${LEGACY_STORAGE_ROOT:-/app/apps/api/src/lib/storage}"
if [ -n "$STORAGE_ROOT" ]; then
mkdir -p "$STORAGE_ROOT"
if [ -d "$LEGACY_STORAGE_ROOT" ]; then
echo "[migrate] Syncing legacy uploads into the dev storage volume"
cp -Rn "$LEGACY_STORAGE_ROOT"/. "$STORAGE_ROOT"/ 2>/dev/null || true
fi
fi
if [ -f "$MARKER_FILE" ]; then
echo "[migrate] Existing dev database detected; skipping deploy and seed"
exit 0