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