Add shorts_yt_quota module, Shorts UI quota banner, overview tweaks (hide upcoming opens, align events panel height), Electron desktop client scaffold, and deploy scripts; update README. Co-authored-by: Cursor <cursoragent@cursor.com>
25 lines
956 B
PowerShell
25 lines
956 B
PowerShell
$ErrorActionPreference = 'SilentlyContinue'
|
|
# Kill electron/vite stacks and anything on 8014
|
|
Get-Process electron -ErrorAction SilentlyContinue | Stop-Process -Force
|
|
Get-CimInstance Win32_Process | Where-Object {
|
|
$_.CommandLine -match 'uvicorn app\.main|electron\.cli|vite\\bin\\vite|concurrently.*vite'
|
|
} | ForEach-Object { taskkill /F /PID $_.ProcessId 2>$null }
|
|
|
|
Start-Sleep -Seconds 2
|
|
|
|
# Free 8014
|
|
netstat -ano | Select-String ':8014\s+.*LISTENING\s+(\d+)' | ForEach-Object {
|
|
taskkill /F /PID $_.Matches.Groups[1].Value 2>$null
|
|
}
|
|
|
|
$env:DY_AUTH_ENABLED = 'false'
|
|
$env:DY_DESKTOP_LIGHT = 'true'
|
|
$env:DY_DISABLE_LIVE_MAP_LOOP = 'true'
|
|
$env:DY_PB_URL = 'http://127.0.0.1:8090'
|
|
$env:DY_S3_ENABLED = 'false'
|
|
$env:DY_CORS_ORIGINS = 'http://127.0.0.1:5173,http://localhost:5173'
|
|
$env:PYTHONUTF8 = '1'
|
|
Set-Location 'c:\Users\admin\Desktop\douyinWEB\backend'
|
|
Write-Host 'Starting uvicorn alone...'
|
|
python -m uvicorn app.main:app --host 127.0.0.1 --port 8014
|