westdc-zf1/shipitfile.js

17 lines
473 B
JavaScript

module.exports = function (shipit) {
shipit.initConfig({
main: {
servers: 'lijianxuan@sj'
}
});
shipit.task('deploy', async function () {
try{
await shipit.remote('sudo /usr/bin/git pull', {'cwd': '/var/www/poles.ac.cn'});
// await shipit.remote('/usr/local/bin/pm2 restart henan', {'cwd': '/home/mapljx/henan/henanWeb'});
}catch (e){
console.log(e.message);
}
});
};