inossidabile / grunt-ftpush

Grunt task for incremental code deployment over ftp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

useless directories are made on server root

hyunchulkwak opened this issue · comments

First, thanks for your great work. It really saves my time.

When i use ftpush, some directories named after what i uploaded (directories, sub directories) are made on my ftp server root.

Like below, if the 'src' directory is uploaded, i see 'somewhere_pkgname_\src' directory on the server root.

module.exports = function(grunt) {
  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    ftpush: {
      build: {
        auth: {
          host: 'ftp.com',
          port: 21,
          authKey: 'key'
        },
        src: 'src',
        dest: 'somewhere/<%= pkg.name %>',
        simple: true
      }
    }
  });
  grunt.loadNpmTasks('grunt-contrib-ftpush');
  grunt.registerTask('default', ['ftpush:build']);
};

It only happens when the simple option is set true and <%= pkg.name %> is used for destination, but i should set simple option true because i've met this issue #26. Also, I use <%= pkg.name %> to avoid editing every single Gruntfile.js of my multiple, similar structured projects.

It's not that annoying to delete those directories, but hopefully there's a way around.