0.0.8 • Published 9 years ago
grunt-rsyncssh v0.0.8
grunt-rsyncssh
Grunt task to deploy websites using rsyncssh.
Require
- rsync
- ssh-client
- sshpass
- nodejs
- npm
- grunt
Installation
Step 1 Installation
If you haven't used grunt before, be sure to check out the Getting Started guide, as it explains how to create a gruntfile as well as install and use grunt plugins. Once you're familiar with that process, install this plugin with this command:
npm install require --save grunt-rsyncssh
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-rsyncssh');
Step 2 Examples
Bower file is located in /Gruntfile.json
.
grunt.initConfig({
rsyncssh: { // Task
production: { // Target
host: "ssh.myserver.com", // Your SFTP host
port: 22, // Your SFTP port
user: "user", // Your SFTP user
password: "secret-password", // Your SFTP secret-password
exclude: [ // Your exclude files
".git/"
],
remote: "/var/www/" // Where the files from the local file will be uploaded at in your remote server
}
}
});
grunt.loadNpmTasks('grunt-rsyncssh');
grunt.registerTask('default', ['rsyncssh']);