0.1.4 • Published 7 years ago

shipit-git-update v0.1.4

Weekly downloads
5
License
GPL-3.0
Repository
github
Last release
7 years ago

# shipit-git-update

This shipit task connects to a remote server and pulls updates to a specific Git branch.

Install

npm install shipit-git-update

Usage

With shipit-cli

Example shipitfile.js:

/*jslint node: true*/
module.exports = function (shipit) {
    'use strict';
    require('shipit-git-update')(shipit);

    shipit.initConfig({
        staging: {
            deployTo: '/path/to/working/copy/',
            branch: 'master',
            servers: 'user@example.com',
            postUpdateCmd: 'foobar'
        }
    });
};

Then run:

shipit staging update

With grunt

Example Gruntfile.js:

/*jslint node: true*/
module.exports = function (grunt) {
    'use strict';

    grunt.loadNpmTasks('grunt-shipit');
    grunt.loadNpmTasks('shipit-git-update');

    grunt.initConfig({
        shipit: {
            staging: {
                deployTo: '/path/to/working/copy/',
                branch: 'master',
                servers: 'user@example.com',
                postUpdateCmd: 'foobar'
            }
        }
    });
};

Then run:

grunt shipit:staging update
0.1.4

7 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago