reisnudel/server.sh
2026-03-24 22:13:08 +01:00

19 lines
438 B
Bash

# the shittiest server and CI you can imagine :3
# update reisnudelprocess.sh (only once to prevent XSS)
cp process.sh ~/reisnudelprocess.sh
# prevent shell from reloading upon file change
exec bash << "EOF"
bash ~/reisnudelprocess.sh
cd serve
python3 -u -m http.server 7574 2>&1 | while read req ; do
echo "$req"
if echo "$req" | grep do-pull ; then
cd ..
git pull
bash ~/reisnudelprocess.sh
cd serve
fi
done
EOF