刷新打包工程的app库

This commit is contained in:
2022-05-20 23:14:55 +08:00
parent 585e6deb89
commit 1123a84d3a

View File

@@ -13,7 +13,7 @@ module.exports = {
db.query(`update node_wxmp_config set error=null where appid='${info.appid}'`).then(() => setTimeout(() => { db.query(`update node_wxmp_config set error=null where appid='${info.appid}'`).then(() => setTimeout(() => {
response.send({code: 0}) response.send({code: 0})
}, 2000)) }, 2000))
execute(`cd /root/node-service/dvcp_v2_wechat&&node bin/pages.js ${id}&&npm run build`) execute(`cd /root/node-service/dvcp_v2_wechat&&npm run apps&&node bin/pages.js ${id}&&npm run build`)
.then(() => fse.emptyDir(`../wxmpZips/${id}/`)) .then(() => fse.emptyDir(`../wxmpZips/${id}/`))
.then(() => fse.copy('../dvcp_v2_wechat/dist/build/mp-weixin/', `../wxmpZips/${id}/`)) .then(() => fse.copy('../dvcp_v2_wechat/dist/build/mp-weixin/', `../wxmpZips/${id}/`))
.then(() => fse.emptyDir('../dvcp_v2_wechat/dist/build')) .then(() => fse.emptyDir('../dvcp_v2_wechat/dist/build'))