utils develop

This commit is contained in:
caoqianming 2021-11-22 13:04:49 +08:00
parent d2fb2ffd55
commit 5601834a33
1 changed files with 2 additions and 2 deletions

View File

@ -62,9 +62,9 @@ class UpdateDevelop(APIView):
import os
# 更新后端
os.chdir('/home/hberp')
os.system('git pull https://caoqianming%40ctc.ac.cn:9093qqww@e.coding.net/ctcdevteam/hberp/hberp.git')
ret = os.popen('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('\cp -rf /home/hberp/hb_client/dist/* /home/hberp/hb_server/vuedist')
return Response()
return Response(ret.read())