更新开发服务器
This commit is contained in:
parent
6a44978456
commit
1641e3cede
|
@ -63,6 +63,9 @@ class UpdateDevelop(APIView):
|
||||||
# 更新后端
|
# 更新后端
|
||||||
os.chdir('/home/hberp')
|
os.chdir('/home/hberp')
|
||||||
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.popen('cp index.html indexbak & rm -rf index.html & rename 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')
|
||||||
|
|
Loading…
Reference in New Issue