added some code to restart the API process once the repo is updated