modified: run.bat
This commit is contained in:
6
run.bat
6
run.bat
@ -57,14 +57,14 @@ if "%PORT%"=="" (
|
|||||||
echo success read port: %PORT%
|
echo success read port: %PORT%
|
||||||
)
|
)
|
||||||
|
|
||||||
:: 5. 启动服务
|
|
||||||
echo starting rebot_server...
|
echo starting rebot_server...
|
||||||
echo listening at: %PORT%
|
echo listening at: %PORT%
|
||||||
|
|
||||||
:: 正确启动 waitress
|
|
||||||
waitress-serve --host=0.0.0.0 --port=%PORT% app:app
|
waitress-serve --host=0.0.0.0 --port=%PORT% app:app
|
||||||
|
|
||||||
:: 6. 错误处理
|
|
||||||
if errorlevel 1 (
|
if errorlevel 1 (
|
||||||
echo error,fail to start
|
echo error,fail to start
|
||||||
pause
|
pause
|
||||||
|
Reference in New Issue
Block a user