This package has been deprecated

Author message:

grunt-shipit is not maintained anymore.

shipit-git-update

0.1.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i shipit-git-update

Weekly Downloads

4

Version

0.1.4

License

GPL-3.0

Last publish

Collaborators

  • rudloff