From 5bb4237010f29c386e9c7fdf49c89f3b2629295c Mon Sep 17 00:00:00 2001 From: DingZQ Date: Sat, 1 Mar 2025 20:57:59 +0800 Subject: [PATCH] Refine --- startfastapiserver.bat | 2 +- startpg.bat | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/startfastapiserver.bat b/startfastapiserver.bat index 6af79e3..e53f847 100644 --- a/startfastapiserver.bat +++ b/startfastapiserver.bat @@ -2,5 +2,5 @@ REM f: REM cd "f:\DEV\GitHub\TJWaterServer" call startpg.bat -cd C:\Users\Administrator\Desktop\server +cd C:\SourceCode\Server uvicorn main:app --host 0.0.0.0 --port 80 --reload diff --git a/startpg.bat b/startpg.bat index 5ca6931..a451e8e 100644 --- a/startpg.bat +++ b/startpg.bat @@ -1,3 +1,4 @@ C: cd "C:\pg-14.7\bin" -pg_ctl -D ../data -l logfile start \ No newline at end of file +pg_ctl -D ../data -l logfile stop +pg_ctl -D ../data -l logfile start