Explorar el Código

更新启动脚本

liu hace 1 año
padre
commit
8027cfc6ec
Se han modificado 1 ficheros con 10 adiciones y 0 borrados
  1. 10 0
      start_server_with_nginx_on_windows.bat

+ 10 - 0
start_server_with_nginx_on_windows.bat

@@ -19,6 +19,16 @@ timeout /t 2 >nul
 if exist "%BACKEND_PID_FILE%" del "%BACKEND_PID_FILE%"
 if exist "%NGINX_PID_FILE%" del "%NGINX_PID_FILE%"
 
+rem Create necessary directories for Nginx
+cd /d "%SCRIPT_DIR%nginx-1.26.3"
+if not exist "logs" mkdir logs
+if not exist "temp" mkdir temp
+if not exist "temp\client_body_temp" mkdir "temp\client_body_temp"
+if not exist "temp\proxy_temp" mkdir "temp\proxy_temp"
+if not exist "temp\fastcgi_temp" mkdir "temp\fastcgi_temp"
+if not exist "temp\uwsgi_temp" mkdir "temp\uwsgi_temp"
+if not exist "temp\scgi_temp" mkdir "temp\scgi_temp"
+
 goto :main
 
 :write_log