diff --git a/run.bat b/run.bat index 0ff3f59..7217ad1 100644 --- a/run.bat +++ b/run.bat @@ -57,14 +57,14 @@ if "%PORT%"=="" ( echo success read port: %PORT% ) -:: 5. 启动服务 + echo starting rebot_server... echo listening at: %PORT% -:: 正确启动 waitress + waitress-serve --host=0.0.0.0 --port=%PORT% app:app -:: 6. 错误处理 + if errorlevel 1 ( echo error,fail to start pause