grunt-deployments
grunt-deployments copied to clipboard
Cannot use grunt-deployments in task list
I have not been able to figure out a way to use db_pull or db_push in a list of tasks because of the need for the "--target=" parameter.
Is there a reason not to use the "standard" grunt task syntax, e.g. task:target?
I solved it for my purposes by modifying db_pull and db_push to use:
var target = grunt.option('target') || (this.args.length >= 0 && this.args[0]) || task_options['target'];
so that --target has precedence but task:target can be used also.
Hey there,
I can not even figure out how to use it within my grunt file. You got a working example for me?
Thanks !:)
+1