Skip to content

Instantly share code, notes, and snippets.

@atheken
Last active December 21, 2015 18:19
Show Gist options
  • Save atheken/6346778 to your computer and use it in GitHub Desktop.
Save atheken/6346778 to your computer and use it in GitHub Desktop.
Stupid simple spawn, allows for supervisor to be run and prevents it from being restarted each time.
var proc = null;
grunt.registerTask('supervisor', function(){
if(!proc){
proc = grunt.util.spawn(this.options());
}
});
grunt.initConfig({
supervisor : {
options: {
cmd : 'supervisor',
args : ['src/server/app.js']
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment