Crates.io | dev-serve |
lib.rs | dev-serve |
version | 0.2.1 |
source | src |
created_at | 2023-07-27 23:01:59.904154 |
updated_at | 2024-02-21 12:39:29.790818 |
description | Spin up a simple static site server with live reload |
homepage | https://github.com/sondr3/dev-serve |
repository | https://github.com/sondr3/dev-serve |
max_upload_size | |
id | 928017 |
size | 103,750 |
Spin up a simple static site server with live reload
dev-serve <dir>
to start a server in <dir>
.Mostly a tool for personal needs where I want to quickly spin up a web server and reload the page when I make changes.
$ dev-serve -h
Serve a directory with auto-reload
Usage: dev-serve [OPTIONS] [PATH]
Arguments:
[PATH] Directory to serve
Options:
-p, --port <PORT> Select port to use [default: 3000]
-r, --reload Auto-reload and watch directory
-e, --extensions <EXTENSIONS> File extensions to watch
-v, --verbose Verbose output
-c, --completions <COMPLETIONS> [possible values: bash, elvish, fish, powershell, zsh]
-h, --help Print help (see more with '--help')
-V, --version Print version
Finally, help is always available with dev-serve --help
/dev-serve -h
.
Currently, the package is available a couple of places, including Homebrew, AUR and Nix.
cargo install dev-serve
brew tap sondr3/homebrew-taps
brew install dev-serve
You can also download the matching release from the release
tab, 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.
GPLv3+.