diff --git a/clevercloud/python.json b/clevercloud/python.json index 8ff5be3..2cf3db5 100644 --- a/clevercloud/python.json +++ b/clevercloud/python.json @@ -1,13 +1,7 @@ { - "deploy": "mkdocs build", - "python": { - "version": "3.13" + "runtime": "3.13", + "deploy": { + "build": "pip install -r requirements.txt", + "start": "./start.sh" } } - - - - - - - diff --git a/start.sh b/start.sh new file mode 100755 index 0000000..fa755e6 --- /dev/null +++ b/start.sh @@ -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