#!/bin/bash

python -V

# clone and build  blog
cd / 
rm -rf /blog
git clone https://gitea.zaclys.com/yannic/blog.git
cd /blog
uv python pin 3.12.9
uv sync
uv run python ./makesite.py

# nginx serve
#nginx -g 'daemon off;'
nginx

# exit on change in stacosys or Git repo
uv run python monitor.py