定制项目打包接口完成

This commit is contained in:
aixianling
2022-07-07 18:03:32 +08:00
parent 1308471a68
commit 6e18858abf

View File

@@ -23,7 +23,7 @@ module.exports = {
db.query(sql)
]).then(() => setTimeout(() => {
response.send({code: 0})
}, 5000))
}, 1000))
execute(`cd ${path}&&npm run apps&&node bin/pages.js ${id}&&npm run build`)
.then(() => fse.emptyDir(dist))
.then(() => execute(`/root/node-service/move.sh ${info.type} ${path} ${dist}`))