Created
January 16, 2016 04:09
-
-
Save RyanCCollins/e25b8cba7dc36abbe68f to your computer and use it in GitHub Desktop.
How to start mongo with Grunt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shell: { | |
mongo: { | |
command: "sh startMongoIfNotRunning.sh", | |
options: { | |
async: true | |
} | |
}, | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this script checks if the mongod is running, starts it if not | |
if pgrep -q mongod; then | |
echo running; | |
else | |
mongod; | |
fi | |
exit 0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment