17 lines
470 B
JavaScript
17 lines
470 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/sjynp.cn'});
|
|
// await shipit.remote('/usr/local/bin/pm2 restart henan', {'cwd': '/home/mapljx/henan/henanWeb'});
|
|
}catch (e){
|
|
console.log(e.message);
|
|
}
|
|
});
|
|
|
|
}; |