Skip to content

Instantly share code, notes, and snippets.

@winwu
Created March 12, 2015 09:01
Show Gist options
  • Save winwu/09124e38335eea08183d to your computer and use it in GitHub Desktop.
Save winwu/09124e38335eea08183d to your computer and use it in GitHub Desktop.
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
'ftp-deploy': {
build: {
auth: {
host: 'XXX.com',
port: 21,
authKey: 'key1',
authPath: '.ftpconfig'
},
src: 'myweb',
dest: '/public_html',
exclusions: [
'./**/.DS_Store',
'./**/Thumbs.db'
]
}
}
});
grunt.loadNpmTasks('grunt-ftp-deploy');
grunt.registerTask('push', ['ftp-deploy']);
grunt.registerTask('default', ['']);
};
@winwu
Copy link
Author

winwu commented Mar 12, 2015

{
"key1": {
"username": "XXX",
"password": "XXXXXX"
}
}

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