dotnetGame / MineCase

Minecraft server based on Orleans
MIT License
775 stars 78 forks source link

Fix bash-runscript #139

Closed jonasbadstuebner closed 4 years ago

jonasbadstuebner commented 4 years ago
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
cd -

echo start MineCase.Server...
cd src/MineCase.Server
dotnet run &
cd -

echo start MineCase.Gateway...
cd src/MineCase.Gateway
dotnet run
cd -

adapt this, so it has equal functionality like the batch-script.

jonasbadstuebner commented 4 years ago

Actually find a good way to replace the "&" - otherwise it's hard to stop the server again. But both "dotnet run"-commands have to be run simultaneously.

jstzwj commented 4 years ago

I just updated the build script in #140.