* add 'checking if mongodb is online' in build scripts. * fix build script exit value.
@@ -1,4 +1,17 @@
@echo off
+where mongo
+IF %ERRORLEVEL% NEQ 0 (
+ echo "mongo command is not available, please make sure mongodb is installed and added to the system path."
+ exit /b 1
+)
+
+mongo --eval "db.stats()"
+ echo "mongodb not running"
+) else (
+ echo "mongodb is online..."
echo building MineCase...
pushd src
#!/bin/bash
+which mongo
+if [ $? -ne 0 ]; then
+ return 1
+fi
+else
cd src