Authored by 姜枫

支持增量分发

... ... @@ -37,7 +37,7 @@ class Deploy {
}
sshDeploy(serverInfo) {
console.log('ssh connecting');
console.log('ssh connecting', serverInfo);
let conn = new ssh.Client();
let self = this;
conn.on('ready', async() => {
... ...
... ... @@ -211,7 +211,7 @@ const p = {
env: building.env
});
if (doc.state !== 'running') {
if (!doc || doc.state !== 'running') {
let info = {
projectId: project._id,
host: host,
... ...