Skip to content

Instantly share code, notes, and snippets.

@sigriston
Last active August 29, 2015 14:14
Show Gist options
  • Save sigriston/b284bcafa840317a344a to your computer and use it in GitHub Desktop.
Save sigriston/b284bcafa840317a344a to your computer and use it in GitHub Desktop.
grunt deploys via grunt-rsync
module.exports = function(grunt) {
// ...
grunt.initConfig({
//...
// Deploy settings (task config, put inside grunt.initConfig)
rsync: {
options: {
src: "dist/",
args: [ "--verbose" ],
ssh: true,
recursive: true,
delete: true
},
example: {
options: {
dest: "[email protected]:/var/www/public_html/"
port: 30089 // ssh port
}
}
}
});
// ...
grunt.registerTask('deploy', [
'build',
'rsync'
]);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment