Given a directory, this application reads all file contents into memory and then serves them up over HTTP when requested.
This application reads all the files in the directory into memory, so if you're serving a lot of large files, it will use a large amount of memory.
Download the static binary, or install crystal, download the source code, and run crystal build src/run.cr
Usage advice is offered by the --help
command-line option.
Improvements and advice are greatly welcome. Please open a pull request or issue with any way to make this application more effective and fast!
- Fork it (https://github.com/dscottboggs/cached_static_server/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- D. Scott Boggs - creator and maintainer