Closed linxixuan closed 10 years ago
l think what you need is outside of the scope of this plugin - it's specifically designed to publish files. You should probably look into combining a cron task that repeatedly polls your source server for new files via ssh.
You can have cron run a custom gulp task or just execute a node script. You should look into ssh2 for any downloading needs.
You may also want to look into some kind of syncing system. RSync works over ssh and may solve your problem.
Good luck!
I need to upload a file to a server, but this server only can download file from a sftp server. First I should upload files to the sftp server, then download file from sftp server to my target server. What can I do?