reload_server —git
This commit is contained in:
parent
95617d422d
commit
ef1b6c5649
|
@ -25,8 +25,11 @@ def backup_database():
|
||||||
@shared_task
|
@shared_task
|
||||||
def reload_server_git():
|
def reload_server_git():
|
||||||
command = 'bash {}/git_server.sh'.format(SH_PATH)
|
command = 'bash {}/git_server.sh'.format(SH_PATH)
|
||||||
subprocess.run(command, shell=True, capture_output=True, text=True)
|
completed = subprocess.run(command, shell=True, capture_output=True, text=True)
|
||||||
# return completed
|
if completed.returncode == 0:
|
||||||
|
return
|
||||||
|
else:
|
||||||
|
raise completed.stdout
|
||||||
|
|
||||||
|
|
||||||
@shared_task
|
@shared_task
|
||||||
|
|
Loading…
Reference in New Issue