Last active
March 4, 2020 00:39
-
-
Save anthonyquizon/6771c61d9f7e3587193d073e1cd2710c to your computer and use it in GitHub Desktop.
Racket Minimal Server with Static File Serving
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang racket | |
(require web-server/servlet-env | |
web-server/http | |
web-server/dispatchers/dispatch) | |
(serve/servlet (lambda (_) (next-dispatcher)) | |
#:servlet-path "/" | |
#:extra-files-paths (list ".") | |
#:listen-ip "0.0.0.0" | |
#:port 4000 | |
#:launch-browser? #f) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reference: https://www.greghendershott.com/2013/03/serve-static-files.html