Use start.sh + python.json, remove uWSGI

master
Robbert Schep 2025-07-04 23:39:56 +02:00
parent 266eb9658f
commit 8d54a72abb
2 changed files with 13 additions and 10 deletions

View File

@ -1,13 +1,7 @@
{
"deploy": "mkdocs build",
"python": {
"version": "3.13"
"runtime": "3.13",
"deploy": {
"build": "pip install -r requirements.txt",
"start": "./start.sh"
}
}

9
start.sh Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -e
echo "🔨 Building the MkDocs site…"
mkdocs build
PORT="${PORT:-8000}"
echo "🚀 Serving site on 0.0.0.0:${PORT}"
exec python -m http.server "$PORT" --directory site