7 lines
570 B
Bash
Executable File
7 lines
570 B
Bash
Executable File
#!/bin/bash
|
|
# Debug helper — starts .NET simulator (primary); Python sim at simulator/modbus_simulator.py is alternative
|
|
set -e
|
|
dotnet build src/ModPulse.Simulator/ModPulse.Simulator.csproj -c Release --nologo /p:RunAnalyzersDuringBuild=false
|
|
ASPNETCORE_URLS=${ASPNETCORE_URLS:-http://localhost:5001} Simulator__Port=${SIMULATOR_PORT:-10502} dotnet src/ModPulse.Simulator/bin/Release/net10.0/ModPulse.Simulator.dll > sim_debug.log 2>&1 &
|
|
echo "Simulator PID $! -> sim_debug.log (Modbus ${SIMULATOR_PORT:-10502}, REST ${ASPNETCORE_URLS:-http://localhost:5001}/health)"
|