Created
March 31, 2017 12:42
-
-
Save makgithub/759a7e2fd2fddb5c3af59551ba2952ce to your computer and use it in GitHub Desktop.
Grunt Sftp deployment grunt file
This file contains 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({ | |
//server deployment | |
'sftp-deploy': { | |
build: { | |
auth: { | |
host: 'wwww.hostname.com', | |
port: 22, | |
authKey: 'privateKeyCustom' | |
}, | |
cache: 'sftpCache.json', | |
src: "js_files/", | |
dest: "/var/www/root2", | |
serverSep: '/', | |
concurrency: 4, | |
progress: true | |
} | |
}, | |
}); | |
grunt.loadNpmTasks('grunt-sftp-deploy'); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Grunt Sftp deployment grunt file