Skip to content

Instantly share code, notes, and snippets.

@RyanCCollins
Created January 16, 2016 04:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RyanCCollins/e25b8cba7dc36abbe68f to your computer and use it in GitHub Desktop.
Save RyanCCollins/e25b8cba7dc36abbe68f to your computer and use it in GitHub Desktop.
How to start mongo with Grunt
shell: {
mongo: {
command: "sh startMongoIfNotRunning.sh",
options: {
async: true
}
},
}
# 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