fix: 本地开发支持 DB_DRIVER=sqlite 零依赖启动(test2 PG 不可达时后端启动即崩)
This commit is contained in:
1 parent
c05339e21c
commit
0deabfed45
2 files changed
+13
-2
No files matched your search
+4
-1
@@ -54,8 +54,11 @@ if not errorlevel 1 (
|
||||
echo.
|
||||
|
||||
rem ---------- 3. Start backend (separate minimized window) ----------
|
||||
rem DB_DRIVER=sqlite: local dev runs on a zero-dependency SQLite file DB.
|
||||
rem The default PostgreSQL (test2, 172.16.0.11:54322) is unreachable from
|
||||
rem office networks, which crashed the backend on startup (pg connect timeout).
|
||||
echo [START] Starting backend service http://localhost:8788 ...
|
||||
start "PERLER LAB Backend" /min cmd /c "cd /d ""%~dp0perler-lab-server"" && npx tsx src/server.ts"
|
||||
start "PERLER LAB Backend" /min cmd /c "cd /d ""%~dp0perler-lab-server"" && set DB_DRIVER=sqlite&& npx tsx src/server.ts"
|
||||
|
||||
rem ---------- 4. Wait 3 seconds for the backend to boot ----------
|
||||
rem ping is used instead of timeout because timeout fails when stdin is
|
||||
|
||||
Reference in new issue
Block a user