自动git pull 并打包前端
This commit is contained in:
parent
23b75df2d4
commit
45117b0916
|
@ -63,4 +63,8 @@ class UpdateDevelop(APIView):
|
||||||
# 更新后端
|
# 更新后端
|
||||||
os.chdir('/home/hberp')
|
os.chdir('/home/hberp')
|
||||||
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.system('npm run build:prod')
|
||||||
|
os.system('cp /home/hberp/hb_client/dist/* /home/hberp/hb_server/vuedist')
|
||||||
return Response()
|
return Response()
|
||||||
|
|
Loading…
Reference in New Issue