0.1.4 • Published 7 years ago
shipit-git-update v0.1.4
# 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