| 123456789101112131415161718192021222324252627 |
- #!/bin/bash
- which mongo
- if [ $? -ne 0 ]; then
- echo "mongo command is not available, please make sure mongodb is installed and added to the system path."
- return 1
- fi
- mongo --eval "db.stats()"
- if [ $? -ne 0 ]; then
- echo "mongodb not running"
- return 1
- else
- echo "mongodb is online..."
- fi
- echo building MineCase...
- cd src
- dotnet restore
- dotnet build -c debug
- echo start MineCase.Server...
- cd ../src/MineCase.Server
- dotnet run
- echo start MineCase.Gateway...
- cd ../src/MineCase.Gateway
- dotnet run
|