Skip to content

Instantly share code, notes, and snippets.

@ndhoule
Forked from Zhang/gist:af73b9b068c21b13c213
Last active August 29, 2015 14:06
Show Gist options
  • Save ndhoule/2ab5ef2a33979d1a3dd3 to your computer and use it in GitHub Desktop.
Save ndhoule/2ab5ef2a33979d1a3dd3 to your computer and use it in GitHub Desktop.
var config = nodemonConf('cluster-web.js');
var newArgs = ['--debug'];
config.options.nodeArgs = Array.isArray(config.options.nodeArgs) ? config.options.nodeArgs.concat(newArgs) : newArgs;
grunt.initConfig({
nodemon: {
web: config,
objodb: nodemonConf('lib/objodb/objodbServer.js'),
topology: nodemonConf('lib/topology.js'),
scheduler: nodemonConf('lib/scheduler.js'),
propertyComputeWorker: nodemonConf('lib/propertyComputeWorker.js'),
emailQueueListener: nodemonConf('lib/emailQueueListener.js'),
fayeServer: nodemonConf('lib/fayeServer.js')
},
concurrent: {
nodemon: {
tasks: [
'nodemon:web',
'nodemon:objodb',
'nodemon:topology',
'nodemon:scheduler',
'nodemon:propertyComputeWorker',
'nodemon:emailQueueListener',
'nodemon:fayeServer'
],
options: {
logConcurrentOutput: true
}
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment