система авторизации
This commit is contained in:
1 parent
85425483c0
commit
f6f1ae20c2
21 files changed
+581
-110
No files matched your search
+6
-6
@@ -1,16 +1,16 @@
|
||||
@echo off
|
||||
rem Engine of the web simulator, restarted automatically if it stops (crash, network loss at boot, manual kill).
|
||||
rem Started hidden by web_sim_autostart.vbs; output goes to web_sim_data\backend.log.
|
||||
rem Authenticated multi-user gateway, restarted automatically if it stops.
|
||||
rem Per-user engines write logs to web_sim_data\users\<id>\data\backend.log.
|
||||
cd /d "%~dp0"
|
||||
set PYTHONIOENCODING=utf-8
|
||||
if not exist web_sim_data mkdir web_sim_data
|
||||
:loop
|
||||
echo [%date% %time%] start >> web_sim_data\backend.log
|
||||
echo [%date% %time%] gateway start >> web_sim_data\gateway.log
|
||||
if exist ".venv\Scripts\python.exe" (
|
||||
".venv\Scripts\python.exe" web_sim.py --backend >> web_sim_data\backend.log 2>&1
|
||||
".venv\Scripts\python.exe" web_proxy.py >> web_sim_data\gateway.log 2>&1
|
||||
) else (
|
||||
py -3 web_sim.py --backend >> web_sim_data\backend.log 2>&1
|
||||
py -3 web_proxy.py >> web_sim_data\gateway.log 2>&1
|
||||
)
|
||||
echo [%date% %time%] stopped, restart in 5 s >> web_sim_data\backend.log
|
||||
echo [%date% %time%] gateway stopped, restart in 5 s >> web_sim_data\gateway.log
|
||||
timeout /t 5 /nobreak >nul
|
||||
goto loop
|
||||
Reference in new issue
Block a user