save code

This commit is contained in:
xsl
2026-03-29 20:50:53 +08:00
parent f24de38e94
commit 36e838caec
17 changed files with 381 additions and 2048 deletions
+5 -3
View File
@@ -1,7 +1,9 @@
#!/usr/bin/env bash
set -euo pipefail
cd /home/xsl/product
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT"
mkdir -p certs
openssl req -x509 -nodes -newkey rsa:2048 -days 365 \
@@ -10,6 +12,6 @@ openssl req -x509 -nodes -newkey rsa:2048 -days 365 \
-subj "/C=CN/ST=Local/L=Local/O=VisualChat/OU=Dev/CN=localhost"
echo "Generated:"
echo " /home/xsl/product/certs/dev-cert.pem"
echo " /home/xsl/product/certs/dev-key.pem"
echo " $ROOT/certs/dev-cert.pem"
echo " $ROOT/certs/dev-key.pem"
echo "Set SSL_CERTFILE and SSL_KEYFILE in .env to enable HTTPS."
+2 -1
View File
@@ -1,7 +1,8 @@
#!/usr/bin/env bash
set -euo pipefail
OUT="${1:-/home/xsl/product/outputs/gpu-metrics.csv}"
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
OUT="${1:-$ROOT/outputs/gpu-metrics.csv}"
SECONDS_TOTAL="${2:-3600}"
INTERVAL="${3:-5}"
+3 -1
View File
@@ -1,7 +1,9 @@
#!/usr/bin/env bash
set -euo pipefail
cd /home/xsl/product
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT"
PY="/home/xsl/miniconda3/envs/MuseTalk/bin/python"
echo "[1/6] service status"
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail
ROOT="/home/xsl/product"
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
PID_FILE="$ROOT/.run/visual-chat.pid"
LOG_FILE="$ROOT/.run/visual-chat.log"
START_CMD="$ROOT/scripts/start-public.sh"
+3 -1
View File
@@ -1,7 +1,9 @@
#!/usr/bin/env bash
set -euo pipefail
cd /home/xsl/product
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT"
PY="/home/xsl/miniconda3/envs/MuseTalk/bin/python"
+3 -1
View File
@@ -1,5 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail
cd /home/xsl/product
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT"
python -m uvicorn main:app --host 0.0.0.0 --port 8080