so my question is I have a local nodejs server that is running on raspberry pi.The server is working with many ports and database and all. So my requirement is that when I upload a new source code to my github I need my local server to know that new code is available and it should download it and once its done it should restart the server.
I can make my local server know that new code is available but how to download it and restart the server once the code is downloaded.