run-linux.sh 422 B

12345678910111213141516
  1. #!/bin/bash
  2. fw_depends mono 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 -f netcoreapp1.0
  13. dotnet run -c Release server.urls=http://*:8080 scenarios=$1 server=kestrel threadCount=$threadCount NonInteractive=true &