projekt:python_fastapi
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| projekt:python_fastapi [2026/02/21 13:28] – torsten.roehl | projekt:python_fastapi [2026/02/23 07:26] (aktuell) – [Systemd] torsten.roehl | ||
|---|---|---|---|
| Zeile 293: | Zeile 293: | ||
| }) | }) | ||
| ) | ) | ||
| - | |||
| - | @app.get("/ | ||
| - | def led_page(): | ||
| - | r, y, g = hardware.status() | ||
| - | return HTMLResponse( | ||
| - | load_template(" | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | }) | ||
| - | ) | ||
| - | |||
| @app.get("/ | @app.get("/ | ||
| Zeile 414: | Zeile 402: | ||
| sudo systemctl enable course_web | sudo systemctl enable course_web | ||
| sudo systemctl start course_web | sudo systemctl start course_web | ||
| + | |||
| + | </ | ||
| + | |||
| + | Nützlich: | ||
| + | <code bash> | ||
| + | sudo systemctl restart course_web | ||
| sudo systemctl status course_web | sudo systemctl status course_web | ||
| </ | </ | ||
projekt/python_fastapi.1771680488.txt.gz · Zuletzt geändert: von torsten.roehl
