reload_server —git

This commit is contained in:
曹前明 2022-06-24 01:25:07 +08:00
parent bd806737e4
commit da50c134e1
1 changed files with 1 additions and 4 deletions

View File

@ -26,10 +26,7 @@ def backup_database():
def reload_server_git():
command = 'bash {}/git_server.sh'.format(SH_PATH)
completed = subprocess.run(command, shell=True, capture_output=True, text=True)
if completed.returncode == 0:
return
else:
return completed.stdout
return completed
@shared_task