mattbanks/WordPress-Starter-Theme

grunt deploy:production gives rsync error

asuh opened this issue · 4 comments

asuh commented

I'm running Windows and trying to deploy my local theme using deploy task. For some reason, it's giving me an error. I've been using cmd.exe with Admin rights so that shouldn't be a problem. I've double checked the settings to make sure my creds are right and I don't see the problem there either.

Here's what I'm seeing (with everything being correct but obfuscated for privacy):
rsync-error

Code 1 for rsync is a syntax error. I'm wondering if Windows needs a different path setup for src instead of ./. Try playing around with that. If that doesn't work, try posting an issue in https://github.com/jedrichards/grunt-rsync or https://github.com/jedrichards/rsyncwrapper (the engine actually driving rsync through Node.js)

asuh commented

Busy month, just now getting back to this. I think you're right that using command prompt to run shell commands and syntax is the problem, thus ./ isn't recognized. I installed Cygwin and get a EINVAL, invalid argument error instead of code 1. Windows doesn't like rsync syntax! Guess this just isn't Windows friendly for now.

asuh commented

This turned out to be user error. Unfortunately the Cygwin installation was a necessity and I needed to enable both Rsync and OpenSSH in order for rsync to send the files properly. Annoying but resolved.

Ah, gotcha. Glad it's resolved!