是否可以在Grunt任务中启动MongoDB?基本上,当我用grunt server
运行我的开发环境时,我希望它也可以通过运行mongod
来启动MongoDB服务器.
是否可以在Grunt任务中启动MongoDB?基本上,当我用grunt server
运行我的开发环境时,我希望它也可以通过运行mongod
来启动MongoDB服务器.
可以使用grunt-shell来运行命令:
grunt.initConfig({
shell: {
mongo: {
command: 'mongod'
}
}
});