Skip to content

Instantly share code, notes, and snippets.

@makgithub
Created March 31, 2017 12:42
Show Gist options
  • Save makgithub/759a7e2fd2fddb5c3af59551ba2952ce to your computer and use it in GitHub Desktop.
Save makgithub/759a7e2fd2fddb5c3af59551ba2952ce to your computer and use it in GitHub Desktop.
Grunt Sftp deployment grunt file
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');
};
@makgithub
Copy link
Author

Grunt Sftp deployment grunt file

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