diff --git a/src/rest/wechat/getZip.js b/src/rest/wechat/getZip.js index 9da4b28..0818916 100644 --- a/src/rest/wechat/getZip.js +++ b/src/rest/wechat/getZip.js @@ -13,7 +13,7 @@ module.exports = { db.query(`update node_wxmp_config set error=null where appid='${info.appid}'`).then(() => setTimeout(() => { response.send({code: 0}) }, 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.copy('../dvcp_v2_wechat/dist/build/mp-weixin/', `../wxmpZips/${id}/`)) .then(() => fse.emptyDir('../dvcp_v2_wechat/dist/build'))