Closed ralyodio closed 10 years ago
So I tried grunt-exec
and it reported an error exit code on the rsync command. I believe the output buffer is too large maybe. Not sure, but I think grunt-shell
should fail on erroneous exit codes like grunt-exec
does.
When I run rsync with -q (quiet)
the command finishes.
I am experiencing this issue as well, except with completely different types of shell commands.
my angular project requires rails backend - so i'm running bundle install in one shell command, and then in another running bundle exec db:reset, etc
if i run these command separately (e.g. grunt shell:build_ruby), everything executes completely and finishes in order. However when I run them in sequence in a combined grunt task, such as... grunt.registerTask('load:admin_server', [ 'shell:checkout_admin', 'shell:build_admin', 'shell:run_server' ]);
the build_admin task does not have time to complete, and is brushed over. If i put a dummy command such as 'pwd' early in that script - it sometimes appears in the logs for shell:run_server
I can provide more examples of this if needed.
i switched to grunt-contrib-exec
and everything works in order.
I posted about this issue, but it seems when I run rsync, the subsequent tasks are running before rsync finishes. The
shell:clean
is deleting files beforeshell:sync
finishes.http://stackoverflow.com/questions/19847247/do-grunt-tasks-wait-for-previous-tasks-to-finish/19847677?noredirect=1#19847677