自动gitpull并打包前端
This commit is contained in:
parent
45117b0916
commit
22a540fbd5
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue