update from asus 106
This commit is contained in:
1 parent
6637fb1302
commit
8285400254
28 files changed
+3215
-459
No files matched your search
@@ -7,17 +7,18 @@ cd "$REPO_DIR"
|
||||
echo "🔄 Restarting app services..."
|
||||
|
||||
# Kill running uvicorn and vite processes
|
||||
fuser -k -9 8000/tcp 8080/tcp 5173/tcp || true
|
||||
pkill -f "uvicorn backend.main:app" || true
|
||||
pkill -f "vite" || true
|
||||
sleep 1
|
||||
sleep 2.5
|
||||
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
|
||||
# Run backend
|
||||
nohup uv run uvicorn backend.main:app --host 0.0.0.0 --port 8000 > "$REPO_DIR/data/backend.log" 2>&1 &
|
||||
setsid uv run uvicorn backend.main:app --host 0.0.0.0 --port 8000 > "$REPO_DIR/data/backend.log" 2>&1 &
|
||||
|
||||
# Run frontend
|
||||
cd "$REPO_DIR/frontend"
|
||||
nohup npm run dev > "$REPO_DIR/data/frontend.log" 2>&1 &
|
||||
setsid npm run dev -- --host 0.0.0.0 --port 8080 > "$REPO_DIR/data/frontend.log" 2>&1 &
|
||||
|
||||
echo "✅ Services restarted."
|
||||
Reference in new issue
Block a user