pyscript-cli icon indicating copy to clipboard operation
pyscript-cli copied to clipboard

Add `pyscript serve` subcommand

Open mattkram opened this issue 3 years ago • 1 comments

Command will run a simple HTTP server in order to host the files dynamically. This is required in order to allow <py-script src="./my_module.py"> to work.

$ pyscript serve my_file.html --show --autoreload

The --autoreload is a nice-to-have, but not necessary right now.

mattkram avatar May 06 '22 16:05 mattkram

Also, potentially pyscript serve my_file.py could perform a wrap and then serve in one go.

mattkram avatar May 06 '22 16:05 mattkram