1. 修复容器名称与环境变量已正确显示无法重启的bug

2. 发布更新说明
This commit is contained in:
ngfchl
2022-08-26 06:37:50 +08:00
parent ab8a992a0d
commit 065b40ad64
2 changed files with 17 additions and 4 deletions

View File

@@ -84,7 +84,7 @@ def do_restart(request):
try:
print('重启')
# print(os.system('pwd'))
if os.environ.get('DJANGO_DEBUG'):
if os.environ.get('CONTAINER_NAME'):
subprocess.Popen('chmod +x ./restart.sh', shell=True)
subprocess.Popen('./restart.sh', shell=True)
return JsonResponse(data=CommonResponse.success(