自动gitpull并打包前端

This commit is contained in:
caoqianming 2021-11-20 22:48:58 +08:00
parent 45117b0916
commit 22a540fbd5
1 changed files with 1 additions and 1 deletions

View File

@ -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.system('git pull https://caoqianming%40ctc.ac.cn:9093qqww@e.coding.net/ctcdevteam/hberp/hberp.git')
# 打包前端 # 打包前端
os.chdir('/home/hberp/hb_client') 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') os.system('cp /home/hberp/hb_client/dist/* /home/hberp/hb_server/vuedist')
return Response() return Response()