Initial commit: XHS crawler with dedup and content extraction
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
# Fast hot-patch without rebuild: copy host app/ into container then restart.
|
||||
# Usage: ./quick_hotpatch.sh
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
cd "$ROOT_DIR"
|
||||
|
||||
echo "[hotpatch] Copying app/ into xhs-web..."
|
||||
docker cp ./app/server.py xhs-web:/app/app/server.py
|
||||
docker cp ./app/static/index.html xhs-web:/app/app/static/index.html
|
||||
|
||||
echo "[hotpatch] Restarting xhs-web..."
|
||||
docker restart xhs-web >/dev/null
|
||||
|
||||
echo "[hotpatch] Tail logs..."
|
||||
docker logs xhs-web --tail=50
|
||||
Reference in New Issue
Block a user