DEPRECATED: queries last git commit and FTPs modified files to server
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
node_modules
tasks
.gitignore
.jshintrc
AUTHORS
Gruntfile.js
LICENSE-MIT
README.md
ToDo.md
package.json

README.md

grunt-git-ftp

queries last git commit and FTPs modified files to server

Node Packaged Modules for Grunt.

Prerequisites

Getting Started

This plugin requires Grunt ~0.4.1

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, you may install this plugin with this command:

npm install grunt-git-ftp --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-git-ftp');

This plugin was designed to work with Grunt 0.4.x. If you're still using grunt v0.3.x it's strongly recommended that you upgrade, but in case you can't please use v0.3.2.

git_ftp task

Run this task with the grunt git_ftp command.

Usage Examples

Gruntfile.js

git_ftp: {
  development: {
    options: {
      'hostFile':'.gitftppass',
      'host':'staging'
    }
  },
  production: {
    options: {
      'hostFile':'.gitftppass',
      'host':'default'
    }
  }
}

.gitftppass FTP Host configuration file

{
  "default": {
      "host": "ftp.host-address.com",
      "port": 21,
      "user": "ftp-username",
      "password": "ftp-account-password",
      "remotePath": "ftp-basepath"
  },"staging": {
      "host": "ftp.host-address.com",
      "port": 21,
      "user": "ftp-username",
      "password": "ftp-account-password",
      "remotePath": "ftp-basepath"
  }
}  

Task submitted by Roberto Carlos Marte

Node Packaged Modules(https://npmjs.org/package/grunt-git-ftp)

This file was generated on Mon Jun 17 2013 08:40:00.