从咕噜任务中开始的MongoDB [英] Start MongoDB from within a Grunt task

查看:152
本文介绍了从咕噜任务中开始的MongoDB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能从咕噜任务中启动MongoDB的?基本上,当我跑步时我的开发环境与咕噜服务器我希望它运行来启动MongoDB的服务器以及可能的mongod

Is it possible to start MongoDB from within a Grunt task? Basically when I'm running my development environment with grunt server I want it to start up the MongoDB server as well possibly by running mongod.

推荐答案

您可以使用咕噜壳运行命令:

grunt.initConfig({
    shell: {
        mongo: {
            command: 'mongod'
        }
    }
});

这篇关于从咕噜任务中开始的MongoDB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆