westdc-zf1/shipitfile.js

17 lines
470 B
JavaScript
Raw Normal View History

2018-04-27 14:04:30 +00:00
module.exports = function (shipit) {
shipit.initConfig({
main: {
servers: 'lijianxuan@sj'
}
});
shipit.task('deploy', async function () {
try{
2018-06-24 06:24:22 +00:00
await shipit.remote('sudo /usr/bin/git pull', {'cwd': '/var/www/sjynp.cn'});
2018-04-27 14:04:30 +00:00
// await shipit.remote('/usr/local/bin/pm2 restart henan', {'cwd': '/home/mapljx/henan/henanWeb'});
}catch (e){
console.log(e.message);
}
});
};