A little raco command to serve some files on the web. Inspired by the command line mode of the python http.server module.
- Ensure
raco
is in your$PATH
. - Open terminal in directory you want to serve.
- Alternatively use the
-d
command line option to specify a directory.
- Run
raco static-web
to serve the current directory.
For help and options use raco help static-web
.
Release date: 2023/01/06
- Add the
--launch
option to open a browser after starting.
Release date: 2022/09/22
- Use response logging
- Support for content-encoding: gzip
Release date: 2022/06/05
- Add content-type headers
- Use a non non-blank 404
- Add favicon
Release date: 2021/11/03
- Initial release
- Ben Knoble : original code, directory listing, testing
- Ryan Culpepper: command line
- Stephen De Gabrielle: docs
- Joel Dueck:
--launch
option - Fred Fu: docs
- Sorawee Porncharoenwase: 404 page, upstream enhancements, response logging, gzip content encoding
- Sam Phillips : shepherding, packaging
file-line.png, folder-3-line.png, and folder-upload-line.png icons from the Remix Icon project.
Things I might add. PRs welcome if you get to this before me.
- MIME types and more icons
- split out directory listing into separate package