dev-serve
Spin up a simple static site server with live reload
- **Simple**: `dev-serve ` to start a server in ``.
- **Live reload**: Automatically reloads the page when files change.
- **Customizable**: Change the port, enable/disable live reload, and more.
Table of Contents
- [What and why](#what-and-why)
- [Usage](#usage)
- [Installation](#installation)
- [License](#license)
# What and why
Mostly a tool for personal needs where I want to quickly spin up a web server
and reload the page when I make changes.
# Usage
```sh
$ dev-serve -h
Serve a directory with auto-reload
Usage: dev-serve [OPTIONS] [PATH]
Arguments:
[PATH] Directory to serve
Options:
-p, --port Select port to use [default: 3000]
-r, --reload Auto-reload and watch directory
-e, --extensions File extensions to watch
-v, --verbose Verbose output
-c, --completions [possible values: bash, elvish, fish, powershell, zsh]
-h, --help Print help (see more with '--help')
-V, --version Print version
```
## Help
Finally, help is always available with `dev-serve --help`/`dev-serve -h`.
# Installation
Currently, the package is available a couple of places, including Homebrew, AUR and Nix.
- Cargo
cargo install dev-serve
- Homebrew
-
brew tap sondr3/homebrew-taps
brew install dev-serve
## Release pages
You can also download the matching release from the [release
tab](https://github.com/sondr3/dev-serve/releases), extracting the archive and
placing the binary in your `$PATH`. Note that for Linux the
`unknown-linux-musl.tar.gz` is preferred as it is statically linked and thus
should run on any Linux distribution.
# LICENSE
GPLv3+.