From 94cde8a8dc758d1628da329dc06e344531713658 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Fri, 30 Aug 2024 18:57:38 +0100 Subject: [PATCH] promote serve up a level --- docs/guide/devtools.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/guide/devtools.md b/docs/guide/devtools.md index ade579f21b..66f283bd0c 100644 --- a/docs/guide/devtools.md +++ b/docs/guide/devtools.md @@ -59,7 +59,7 @@ For instance, the following will run the `textual colors` command: textual run -c textual colors ``` -### Serve +## Serve The devtools can also serve your application in a browser. Effectively turning your terminal app in to a web application! @@ -92,6 +92,12 @@ You can serve multiple instances of your application at once! Textual serve is also useful when developing your app. If you make changes to your code, simply refresh the browser to update. +There are some additional switches for serving Textual apps. Run the following for a list: + +``` +textual serve -h +``` + ## Live editing If you combine the `run` command with the `--dev` switch your app will run in *development mode*.