0.1.1 • Published 7 years ago
shipit-composer-simple v0.1.1
# shipit-composer-simple
This shipit task helps you run Composer commands on your distant server.
Install
npm install shipit-composer-simple
Usage
With shipit-cli
Example shipitfile.js:
/*jslint node: true*/
module.exports = function (shipit) {
'use strict';
require('shipit-composer-simple')(shipit);
shipit.initConfig({
staging: {
deployTo: '/path/to/working/copy/',
servers: 'user@example.com',
composer: {
noDev: true
}
}
});
};
Then run:
shipit staging composer:install
With grunt
Example Gruntfile.js:
/*jslint node: true*/
module.exports = function (grunt) {
'use strict';
grunt.loadNpmTasks('grunt-shipit');
grunt.loadNpmTasks('shipit-composer-simple');
grunt.initConfig({
shipit: {
staging: {
deployTo: '/path/to/working/copy/',
servers: 'user@example.com',
composer: {
noDev: true
}
}
}
});
};
Then run:
grunt shipit:staging composer:install