flet serve
Serve static files from a directory with a lightweight web server, optionally adding WebAssembly-related headers for Flet web apps.
Usage#
Positional arguments#
web_root#
Directory to serve (default: ./build/web).
Default: ./build/web
Options#
--help#
Show this help message and exit.
Aliases: -h
--port#
Port number to serve the files on. Use this to customize the port if the default is already in use or needs to be changed (default: 8000).
Value: PORT <int>
Default: 8000
Aliases: -p
--verbose#
Enable verbose output. Use -v for standard verbose logging and -vv for more detailed output.
Aliases: -v