mirror of
https://github.com/static-web-server/static-web-server.git
synced 2026-01-25 13:17:10 +00:00
* chore: format Markdown files with mdformat * chore: switch to mdformat config file * chore: add missing trailing slash * docs: add section about formatting Markdown files
807 B
807 B
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
!!! info "Docker Tip"
You can specify a Docker volume like `-v $HOME/my-public-dir:/var/public` to overwrite the default root directory. See [Docker examples](features/docker.md).
- Type
static-web-server --helpor 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.