u
This commit is contained in:
parent
d02d43f43c
commit
ff1e9c5241
10
deploy.js
10
deploy.js
@ -164,19 +164,19 @@ function deployToSsh(connection){
|
||||
})
|
||||
ssh.dispose()
|
||||
if (err) {
|
||||
console.error(`🙁️🙁️🙁️ Failed deploy ${wo.envi.deploy.fromPath} to ${connection.targetPath}/${connection.targetDir} 🙁️🙁️🙁️`)
|
||||
console.error(`🤷♀️🤷♀️🤷♀️ Failed deploy ${wo.envi.deploy.fromPath} to ${connection.targetPath}/${connection.targetDir} 🤷♀️🤷♀️🤷♀️`)
|
||||
process.exit(1)
|
||||
} else {
|
||||
console.info(`😊😊😊 Successfully deployed [${wo.envi.deploy.fromPath}] to [${connection.targetPath}/${connection.targetDir}] 😊😊😊`)
|
||||
if (connection.url){
|
||||
console.info(`*** ${connection.url} ***`)
|
||||
console.info(`😊😊😊 ${connection.url} 😊😊😊`)
|
||||
}
|
||||
process.exit()
|
||||
}
|
||||
}).catch(err => {
|
||||
console.error(err)
|
||||
ssh.dispose()
|
||||
console.error(`🙁️🙁️🙁️ Failed deploy [${wo.envi.deploy.fromPath}] to [${connection.targetPath}/${connection.targetDir}] 🙁️🙁️🙁️`)
|
||||
console.error(`🤷♀️🤷♀️🤷♀️ Failed deploy [${wo.envi.deploy.fromPath}] to [${connection.targetPath}/${connection.targetDir}] 🤷♀️🤷♀️🤷♀️`)
|
||||
process.exit(1)
|
||||
})
|
||||
}
|
||||
@ -302,10 +302,10 @@ function deployToGit(connection){
|
||||
}).then(()=>{
|
||||
console.info(`😊😊😊 Successfully deployed [${wo.envi.deploy.fromPath}] to [${connection.repo}#${connection.branch}] 😊😊😊`)
|
||||
if (connection.url){
|
||||
console.info(`*** ${connection.url} ***`)
|
||||
console.info(`😊😊😊 ${connection.url} 😊😊😊`)
|
||||
}
|
||||
}).catch((err)=>{
|
||||
console.error(`🙁️🙁️🙁️ Failed deploy [${wo.envi.deploy.fromPath}] to [${connection.targetPath}/${connection.targetDir}] 🙁️🙁️🙁️`)
|
||||
console.error(`🤷♀️🤷♀️🤷♀️ Failed deploy [${wo.envi.deploy.fromPath}] to [${connection.targetPath}/${connection.targetDir}] 🤷♀️🤷♀️🤷♀️`)
|
||||
process.exit(1)
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user