first upload

This commit is contained in:
Creat0r
2025-11-27 18:18:43 +01:00
parent de61047ac5
commit 3c138f2b3b
9 changed files with 145 additions and 0 deletions

21
bin/run.sh Normal file
View File

@ -0,0 +1,21 @@
#!/bin/sh
git pull -C /app
if [ ! -d /app/.venv ];
then
logger "generating python virtual-env"
python3 -m venv /app/.venv
echo '.venv' >> /app/.gitignore
fi
source /app/.venv/bin/activate
if [ -f /app/requirements.txt ];
then
logger "updating python packages"
pip3 install -U -r /app/requirements.txt
fi
logger "starting CloudGPT"
python3 /app/bin/CloudGPT.py 2>&1 | while IFS= read -r line; do logger "$line"; done