run-linux.sh 426 B

12345678910111213141516
  1. #!/bin/bash
  2. fw_depends dotnetcore
  3. threadCount=$2
  4. if [ "$threadCount" -lt "1" ]
  5. then
  6. threadCount=1
  7. fi
  8. cd Benchmarks
  9. cp appsettings.postgresql.json appsettings.json
  10. sed -i 's|{db_server_placeholder}|'"${DBHOST}"'|g' appsettings.json
  11. dotnet restore
  12. dotnet build -c Release
  13. dotnet bin/Release/netcoreapp1.1/Benchmarks.dll server.urls=http://*:8080 scenarios=$1 server=kestrel threadCount=$threadCount NonInteractive=true &