更新部署服务
This commit is contained in:
@@ -4,9 +4,8 @@ module.exports = info => {
|
||||
return new Promise((resolve, reject) => {
|
||||
fse.emptyDir(`zips/${info.id}`, err => {
|
||||
if (!err) {
|
||||
execute(`cd zips&&git clone ${info.git} ./${info.id}`)
|
||||
.then(() => execute(`cd zips/${info.id}&&git checkout ${info.branch}`))
|
||||
.then(() => execute(`cd zips/${info.id}&&npm i&&npm run build`))
|
||||
execute(`./${info.updateShell}`)
|
||||
.then(() => execute(`./${info.libShell}`))
|
||||
.then(() => resolve())
|
||||
.catch(errs => {
|
||||
console.log(errs)
|
||||
|
||||
Reference in New Issue
Block a user