0.0.8 • Published 9 years ago

grunt-rsyncssh v0.0.8

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
9 years ago

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']);
0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago