From 22a540fbd5c5b09c9c220461067353f007d171ac Mon Sep 17 00:00:00 2001 From: caoqianming Date: Sat, 20 Nov 2021 22:48:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8gitpull=E5=B9=B6=E6=89=93?= =?UTF-8?q?=E5=8C=85=E5=89=8D=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hb_server/utils/view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hb_server/utils/view.py b/hb_server/utils/view.py index 478290f..7f974c4 100644 --- a/hb_server/utils/view.py +++ b/hb_server/utils/view.py @@ -65,6 +65,6 @@ class UpdateDevelop(APIView): os.system('git pull https://caoqianming%40ctc.ac.cn:9093qqww@e.coding.net/ctcdevteam/hberp/hberp.git') # 打包前端 os.chdir('/home/hberp/hb_client') - os.system('npm run build:prod') + os.system('npm install && npm run build:prod') os.system('cp /home/hberp/hb_client/dist/* /home/hberp/hb_server/vuedist') return Response()