grunt-git-ftp
queries last git commit and FTPs modified files to server
Node Packaged Modules for Grunt.
Prerequisites
- Grunt
~0.4.1
(http://gruntjs.com/getting-started) - Node v0.10.5 (http://nodejs.org)
- Git (http://git-scm.com)
- FTP Server
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;
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.