更新开发服务器
This commit is contained in:
parent
4da2f48203
commit
3dce508925
|
@ -50,7 +50,7 @@ class GenSignature(APIView):
|
||||||
cv2.imwrite(path,image)
|
cv2.imwrite(path,image)
|
||||||
return Response(request.data, status=status.HTTP_200_OK)
|
return Response(request.data, status=status.HTTP_200_OK)
|
||||||
|
|
||||||
|
import time
|
||||||
class UpdateDevelop(APIView):
|
class UpdateDevelop(APIView):
|
||||||
"""
|
"""
|
||||||
更新开发服务器
|
更新开发服务器
|
||||||
|
@ -66,7 +66,9 @@ class UpdateDevelop(APIView):
|
||||||
# 奇怪的处理
|
# 奇怪的处理
|
||||||
os.chdir('/home/hberp/hb_server/vuedist')
|
os.chdir('/home/hberp/hb_server/vuedist')
|
||||||
os.popen('cp index.html indexbak')
|
os.popen('cp index.html indexbak')
|
||||||
|
time.sleep(1000)
|
||||||
os.popen('rm -rf index.html')
|
os.popen('rm -rf index.html')
|
||||||
|
time.sleep(1000)
|
||||||
os.popen('mv -f indexbak index.html')
|
os.popen('mv -f indexbak index.html')
|
||||||
# 打包前端
|
# 打包前端
|
||||||
# os.chdir('/home/hberp/hb_client')
|
# os.chdir('/home/hberp/hb_client')
|
||||||
|
|
Loading…
Reference in New Issue