diff --git a/server/scenario/Resources/scenario.bat b/server/scenario/Resources/scenario.bat index 13fb61c..9ffdd2d 100644 --- a/server/scenario/Resources/scenario.bat +++ b/server/scenario/Resources/scenario.bat @@ -82,12 +82,15 @@ start "%SERVER_HUMP% Server" /B cmd /c "chcp 65001 && java !%SERVER_UPPER%_VM_PA echo Starting %SERVER_HUMP% Website... cd web -cd dist && mkdir temp && cd temp && cp ../wsUrl.js . + +set "tmp=tmp" +cd dist && mkdir temp && cd %tmp% && cp ../wsUrl.js . sed -i "s/6680/18680/" wsUrl.js >nul sed -i "s/6681/18280/" wsUrl.js >nul sed -i "s/6682/18880/" wsUrl.js >nul sed -i "s/6683/18480/" wsUrl.js >nul -cp wsUrl.js .. && cd .. && rm -rf temp && cd .. +cp wsUrl.js .. && cd .. && rm -rf %tmp% && cd "%~dp0/web" + taskkill -f -im %SERVER_LOWER%-web.exe >nul start "%SERVER_HUMP% Website" /B cmd /c "%SERVER_LOWER%-web.exe -c conf\web.conf"