gaspanik / gulp-gitftp

Simple git-ftp upload tasks w/ gulp.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Simple git-ftp upload tasks w/ gulp.


Languages

Language:JavaScript 100.0%