Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
module.exports = function(shipit) {
require('shipit-deploy')(shipit);
shipit.initConfig({
default: {
workspace: '/tmp/app',
deployTo: '/var/www/app',
repositoryUrl: 'git@repo',
ignores: ['.git', 'node_modules', 'bower_components'],
rsync: ['--del'],
keepReleases: 5,
key: '~/.ssh/id_rsa_new',
shallowClone: true,
branch: 'dev'
},
production: {
servers: 'user@ip.address'
}
});
shipit.on('deployed', function() {
console.log('calle dit')
return shipit.remote('pwd');
})
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment