开发服务器bug

This commit is contained in:
caoqianming 2021-12-20 16:29:10 +08:00
parent 61a1b9c858
commit 60dbd38ca2
1 changed files with 3 additions and 1 deletions

View File

@ -65,7 +65,9 @@ class UpdateDevelop(APIView):
ret = os.popen('git pull https://caoqianming%40foxmail.com:9093qqww@e.coding.net/ctcdevteam/hberp/hberp.git develop') ret = os.popen('git pull https://caoqianming%40foxmail.com:9093qqww@e.coding.net/ctcdevteam/hberp/hberp.git develop')
# 奇怪的处理 # 奇怪的处理
os.chdir('/home/hberp/hb_server/vuedist') os.chdir('/home/hberp/hb_server/vuedist')
os.popen('cp index.html indexbak && rm -rf index.html && mv -f indexbak index.html') os.popen('cp index.html indexbak')
os.popen('rm -rf index.html')
os.popen('mv -f indexbak index.html')
# 打包前端 # 打包前端
# os.chdir('/home/hberp/hb_client') # os.chdir('/home/hberp/hb_client')
# os.system('npm run build:prod') # os.system('npm run build:prod')