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

Not uploading when on a sequence task #100

Open
nunospot opened this issue Oct 9, 2017 · 0 comments
Open

Not uploading when on a sequence task #100

nunospot opened this issue Oct 9, 2017 · 0 comments

Comments

@nunospot
Copy link

nunospot commented Oct 9, 2017

Hello,

I have two separate tasks, one to only deploy, and another to compile and deploy. The task that only deploy is working, but that task that compile and deploy is not.

For the compile and deploy task, i'm running gulp-sequence, to make sure to compile and then deploy.

Here are the gulp tasks:

gulp.task('deploy-dev', function () {
	//Docs - https://github.com/morris/vinyl-ftp
	const conn = ftp.create({
		host: '**************',
		user: '*********',
		password: '**********',
		parallel: 10,
		reload: true
	});

	const globs = [
        'dist-dev/**'
    ];

	const themepath = '**********';

	return gulp.src(globs, {
			base: 'dist-dev/',
			buffer: false
		})
		.pipe(conn.dest(themepath));

});
gulp.task('dev', function (callback) {
	gulpSequence(['styles', 'scripts'], 'dist-dev', 'deploy-dev')(callback)
});

I tried to make the dist-dev a dependent task to deploy-dev but it didn't to the job too.

I'm missing something?

Thank you

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

No branches or pull requests

2 participants