Created
March 12, 2015 09:01
-
-
Save winwu/09124e38335eea08183d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', ['']); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
{
"key1": {
"username": "XXX",
"password": "XXXXXX"
}
}