Simple git-ftp upload tasks w/ gulp.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
public_html
.editorconfig
.gitignore
README.md
gulpfile.js
package.json

README.md

gulp-gitftp

Simple git-ftp upload tasks w/ gulp.

Requirement

Install w/ Homebrew

$ brew install curl --with-ssl --with-libssh2 git-ftp

Usage

Install gulp and some dependencies.

$ npm install

Open gulpfile.js and set your environment.

var config = {
  'username': 'your ftp username',
  'passwd': 'your ftp password',
  'host': 'ftp.example.com/public_html', // set ftp hostname. eg. 'ftp.example.com/htdocs'
  'root': './' // set local syncroot path. eg. './', './public_html' etc
}

First time, you need to run gulp ftp-init.

$ gulp ftp-init

gulp ftp-init initializes the first upload to remote host.

Uploads files which have changed since last upload.

$ gulp ftp-push

MIT