issuing service restart on webhook

This commit is contained in:
Andrea Mannocci 2020-07-07 18:39:45 +02:00
parent 1bd84ee397
commit 7b3a883747
1 changed files with 1 additions and 0 deletions

View File

@ -45,4 +45,5 @@ def on_git_push():
log.info('Executing webhook for Gitea')
repo = Repo()
repo.remotes.origin.pull()
os.system('sudo systemctl restart paper-demo')
return 200