Quick Start
Download and install the binary for your specific platform and then type
sh
static-web-server --port 8787 --root ./my-public-dirOr if you use Docker just try
sh
docker run --rm -it -p 8787:80 joseluisq/static-web-server:2Docker Tip
You can specify a Docker volume like -v $HOME/my-public-dir:/var/public to overwrite the default root directory. See Docker examples.
- Type
static-web-server --helpor see the Command-line arguments section. - See how to configure the server using a configuration file section.
- Have a look at the features section for more advanced examples.