Skip to content

Instantly share code, notes, and snippets.

@ahhmarr
Last active January 16, 2017 06:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahhmarr/ae8537fb8f0249d50744b1a35532f797 to your computer and use it in GitHub Desktop.
Save ahhmarr/ae8537fb8f0249d50744b1a35532f797 to your computer and use it in GitHub Desktop.
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('deploy:init', 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