Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uploading too many files to server #124

Open
annaoleksiuk opened this issue Jun 15, 2019 · 0 comments
Open

Uploading too many files to server #124

annaoleksiuk opened this issue Jun 15, 2019 · 0 comments

Comments

@annaoleksiuk
Copy link

annaoleksiuk commented Jun 15, 2019

Hi,

I have this task going on:

gulp.task('sendToServer', function() {
        var conn = ftp.create( {
            host:     'credentials',
            user:     'credentials',
            password: 'credentials'
        });


    return watch('path/**', function() {
        gulp.src( 'path/**', { buffer: false } )
            .pipe( conn.newer( '/path/on/srv' ) ) // only upload newer files
            .pipe( conn.dest( '/path/on/srv' ) )
            .pipe(notify({
                message: "File <%= file.relative %> sent",
                notifier: function (options, callback) {
                    callback();
                }
            }));
        });
    });

Now, each time on file save I get a notification about sending plenty of files, which - I assume - I already sent them earlier, but they are sent again with newly modified files. Could you explain me please that behavior? Is that expected but something is wrong with my .js file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant