Skip to content
This repository has been archived by the owner on Dec 7, 2020. It is now read-only.

carlosmarte/grunt-git-ftp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

DEPRECATED: queries last git commit and FTPs modified files to server

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published