diff --git a/server/simulation/Resources/simulation.bat b/server/simulation/Resources/simulation.bat new file mode 100644 index 0000000..c4901bd --- /dev/null +++ b/server/simulation/Resources/simulation.bat @@ -0,0 +1,19 @@ +@echo off +chcp 65001 >nul +title Simulation Quick Start + +if exist "%SIMULATION_MANAGE_BIN%" ( + :: start "Simulation Server" cmd /k "chcp 65001 && title Simulation Server && java -Dserver.port=28280 -Dspring.profiles.active=test,mysql,redis,rocketmq,springdoc --enable-preview -Dproject.database-ip=127.0.0.1 -Dproject.redis-url=127.0.0.1 -Djasypt.encryptor.password=jwnwfA1pIoLihBptgbR8S6UEEAfGurjG -Dproject.rocketmq-url=127.0.0.1:8081 -Dproject.minio-url=http://127.0.0.1:9000 -Dproject.eval-service-url=http://127.0.0.1:28480/evaluation/samples/receiveSync -jar %SIMULATION_MANAGE_BIN%" + start "Simulation Server" cmd /k "chcp 65001 && title Simulation Server && java -Dspring.profiles.active=test,mysql,redis,rocketmq,springdoc %SIMULATION_VM_PARAMS% -jar %SIMULATION_MANAGE_BIN%" +) + +if exist "%SIMULATION_MANAGE_BIN%" ( + cd %SIMULATION_MAIN%\web + start "Simulation Website" cmd /k "title Simulation Website && simulation-web.exe -c conf/web.conf" +) + +echo 实验服务已启动: +echo - SimulationServer (端口: 28280) +echo - SimulationWebsite (端口: 18280) + +pause \ No newline at end of file