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
.
- Ben Knoble : original code, directory listing, testing
- Ryan Culpepper: command line
- Stephen De Gabrielle: docs
- Fred Fu: docs
- Sorawee Porncharoenwase: 404 page, upstream enhancements.
- 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