Quick Start
Download and install the binary for your specific platform and then type
sh
static-web-server --root ./my-public-dir
# Serving on http://localhost:8080Or if you use Docker just try
sh
docker run --rm -it -p 8080:8080 joseluisq/static-web-server:3.0.0-beta.2 -g infoDocker 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.