This is a Python project for updating Python code on a remote Maschine
- Install git & python3:
winget install -e Git.Git python3
- Clone Repository:
git clone https://github.com/hstoreinteractive/TheHSI-Remote-Script-Update-System.git cd HSI-Remote-Script-Update-System - Integrate it into your Script:
import remote_update remote_update.listen('password', __file__, True)
- Install git & python3:
winget install -e Git.Git python3
- Clone Repository:
git clone https://github.com/hstoreinteractive/TheHSI-Remote-Script-Update-System.git cd HSI-Remote-Script-Update-System - Change the values in update.py:
HOST = "127.0.0.1" # The server's hostname or IP address PORT = 6489 # The port used by the server ( Default: 6489 ) FILE = "new_codebase.py" # File with updated code
- Install all requirements:
pip install -r requirements.txt
- Run the update:
python update.py
- Install git & python3:
sudo apt install -y git python3 python3-pip
- Clone Repository:
git clone https://github.com/hstoreinteractive/TheHSI-Remote-Script-Update-System.git cd HSI-Remote-Script-Update-System - Change the values in update.py:
HOST = "127.0.0.1" # The server's hostname or IP address PORT = 6489 # The port used by the server ( Default: 6489 ) FILE = "new_codebase.py" # File with updated code
- Install all requirements:
pip install -r requirements.txt
- Run the update:
python update.py