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');
})
};
```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');
})
};```
shipit.on('fetched', ...)
. But then when I enter the task, any commands that I run through shipit.local()
are not run in the same directory as the fresh git checkout.