var $             = require('gulp-load-plugins')();
var browserSync   = require('browser-sync');
var config        = require('../util/loadConfig');
var gulp          = require('gulp');
var ftp           = require('vinyl-ftp');
var minimist      = require('minimist');
var TRAVIS        = minimist(process.argv.slice(2));

gulp.task('deploy', function() {

  var conn = ftp.create({
  host:     TRAVIS.FTP_HOST,
  user:     TRAVIS.FTP_USER,
  password: TRAVIS.FTP_PASSWORD,
  parallel: 10,
  log:      browserSync.notify
  });

  var globs = [
    '_site/',
  ];

// using base = '.' will transfer everything to /public_html correctly
// turn off buffering in gulp.src for best performance

return gulp.src( globs, { base: '.', buffer: false } )
  .pipe( conn.newer( TRAVIS.FTP_DESTINATION ) ) // only upload newer files
  .pipe( conn.dest( TRAVIS.FTP_DESTINATION ) );
});

@@ -375,16 +375,18 @@
 reate(%7B%0A
+  
   host: 
@@ -408,16 +408,18 @@
 HOST,%0A  
+ 
+ 
 user:   
@@ -439,16 +439,18 @@
 USER,%0A  
+ 
+ 
 password
@@ -472,16 +472,18 @@
 SSWORD,%0A
+  
   parall
@@ -492,16 +492,18 @@
 : 10,%0A  
+ 
+ 
 log:    
@@ -508,67 +508,24 @@
     
-browserSync.notify%0A  %7D);%0A%0A  var globs = %5B%0A    '_site/',%0A  %5D
+console.log%0A  %7D)
 ;%0A%0A/
@@ -671,13 +671,20 @@
 rc( 
-globs
+'_site/**/*'
 , %7B 

change deploy log func to console.log