d1871b3979
Release pipeline / Get version (push) Has been cancelled
Release pipeline / Get Chart Name (push) Has been cancelled
Release pipeline / tests (push) Has been cancelled
Release pipeline / builds (push) Has been cancelled
Release pipeline / builds-ghcr (push) Has been cancelled
Release pipeline / test-deployments (push) Has been cancelled
Release pipeline / deploy (push) Has been cancelled
Release pipeline / Helm chart oci (push) Has been cancelled
Release pipeline / npm (push) Has been cancelled
Release pipeline / snyk (push) Has been cancelled
43 lines
1.4 KiB
Batchfile
43 lines
1.4 KiB
Batchfile
@echo off
|
|
echo ============================================
|
|
echo SPECKLE SERVER DEV STARTUP
|
|
echo ============================================
|
|
echo.
|
|
|
|
REM Set Node 22 first
|
|
set "NVM_PATH=C:\Users\huanld\AppData\Local\nvm\v22.19.0"
|
|
set "PATH=%NVM_PATH%;%PATH%"
|
|
|
|
echo [1/2] Checking node version...
|
|
node -v
|
|
echo.
|
|
|
|
REM First fix VPS - restart Keycloak via SSH
|
|
echo [VPS] Checking and restarting Keycloak on VPS...
|
|
ssh -o StrictHostKeyChecking=no -i "%USERPROFILE%\.ssh\id_rsa" root@100.64.0.3 "cd /root && docker compose -f docker-compose-vps.yml up -d keycloak valkey 2>&1"
|
|
echo.
|
|
echo [VPS] Waiting 15 seconds for Keycloak to start...
|
|
timeout /t 15 /nobreak
|
|
echo.
|
|
|
|
REM Set Memory Limit for Nuxt/Node
|
|
set "NODE_OPTIONS=--max-old-space-size=8192"
|
|
|
|
REM Start backend in new window
|
|
echo [2/3] Starting Backend Server (port 3000)...
|
|
start "Speckle Backend" cmd /k "set PATH=%NVM_PATH%;%PATH% && cd /d d:\speckle-server\packages\server && npx tsx --import ./esmLoader.js ./run.ts"
|
|
timeout /t 3 /nobreak
|
|
|
|
REM Start frontend in new window
|
|
echo [3/3] Starting Frontend (port 8081)...
|
|
start "Speckle Frontend" cmd /k "set PATH=%NVM_PATH%;%PATH% && cd /d d:\speckle-server\packages\frontend-2 && npx nuxi dev"
|
|
|
|
|
|
echo.
|
|
echo ============================================
|
|
echo Servers starting in separate windows!
|
|
echo Backend: http://127.0.0.1:3000
|
|
echo Frontend: http://127.0.0.1:8081
|
|
echo ============================================
|
|
pause
|