morris / vinyl-ftp

Blazing fast vinyl adapter for FTP
Other
388 stars 31 forks source link

Connection do nothing #99

Open rafelsanso opened 7 years ago

rafelsanso commented 7 years ago

I have two projects with the same task:

var conn = ftp.create({
        host: myHost,
        user: myUser,
        password: myPass,
        parallel: 10,
        log: gutil.log,
        secure: false,
        debug: true
    });

    var globs = [
        'assets/**',
        'css/**',
        'lib/**',
        'js/**',
        '*.html'
    ];

    return merge([
        gulp.src( globs, { base: 'out', buffer: false, cwd: config.path.out } )
           .pipe(conn.newerOrDifferentSize(env.current.base)),
        gulp.src( ["vendors/**"], { base: 'out/js/', buffer: false, cwd: config.path.out } )
            .pipe(conn.dest(env.current.vendors))
    ]);

In one project, I can execute this code fine. Without problems. But with an other project, do nothing.

[10:51:34] Starting 'deploy'...
[10:51:34] Finished 'deploy' after 18 ms

The code and the variables are cloned from one project to other. Any idea from the issue?

andregoncalves commented 7 years ago

Try replacing base: 'out' with base: './out'

rafelsanso commented 7 years ago

Not works, sorry :/