只更新后端了

This commit is contained in:
caoqianming 2021-11-22 00:14:56 +08:00
parent 22a540fbd5
commit a235b54d2e
1 changed files with 3 additions and 3 deletions

View File

@ -64,7 +64,7 @@ class UpdateDevelop(APIView):
os.chdir('/home/hberp')
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 install && npm run build:prod')
os.system('cp /home/hberp/hb_client/dist/* /home/hberp/hb_server/vuedist')
# 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()