diff --git a/tasks/forever-task.js b/tasks/forever-task.js index 2e305f0..332837e 100644 --- a/tasks/forever-task.js +++ b/tasks/forever-task.js @@ -162,7 +162,7 @@ module.exports = function(grunt) { grunt.registerMultiTask( 'forever', 'Starts node app as a daemon.', function(target) { var index = this.options().index || 'index.js', - operation = target || 'start'; + operation = target || this.options().operation || 'start'; commandName = this.options().command; if (this.options().logDir) {