Python
Aktualisiert am 27. Oktober 2026
Python
Das Vorhandensein von requirements.txt, pyproject.toml oder Pipfile löst die Python-Erkennung aus. Python 3.12 wird standardmäßig verwendet.
FastAPI
# main.py
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
def root():
return {"message": "Hello Webgune"}
# requirements.txt
fastapi
uvicorn[standard]
Startbefehl (festzulegen, falls der Auto-Builder ihn nicht erkennt):
uvicorn main:app --host 0.0.0.0 --port $PORT
Django
DATABASE_URL=postgresql://user:pass@host:5432/db
DJANGO_SECRET_KEY=aendere-mich
DJANGO_ALLOWED_HOSTS=ihre-domain.webgune.dev
python manage.py migrate
gunicorn meinprojekt.wsgi:application --bind 0.0.0.0:$PORT
Flask
gunicorn app:app --bind 0.0.0.0:$PORT --workers 2
Verwenden Sie unabhängig vom Framework nicht den Entwicklungsserver (
flask run,manage.py runserver) in Produktion. Bevorzugen Sie Gunicorn oder Uvicorn, die unter Last robuster sind.