From 3dce508925780777445125e73497c50f804103a2 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 22 Dec 2021 12:00:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=BC=80=E5=8F=91=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hb_server/utils/view.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hb_server/utils/view.py b/hb_server/utils/view.py index dff8293..e7b3ca5 100644 --- a/hb_server/utils/view.py +++ b/hb_server/utils/view.py @@ -50,7 +50,7 @@ class GenSignature(APIView): cv2.imwrite(path,image) return Response(request.data, status=status.HTTP_200_OK) - +import time class UpdateDevelop(APIView): """ 更新开发服务器 @@ -66,7 +66,9 @@ class UpdateDevelop(APIView): # 奇怪的处理 os.chdir('/home/hberp/hb_server/vuedist') os.popen('cp index.html indexbak') + time.sleep(1000) os.popen('rm -rf index.html') + time.sleep(1000) os.popen('mv -f indexbak index.html') # 打包前端 # os.chdir('/home/hberp/hb_client')