Skip to content

Instantly share code, notes, and snippets.

@anthonyquizon
Last active March 4, 2020 00:39
Show Gist options
  • Save anthonyquizon/6771c61d9f7e3587193d073e1cd2710c to your computer and use it in GitHub Desktop.
Save anthonyquizon/6771c61d9f7e3587193d073e1cd2710c to your computer and use it in GitHub Desktop.
Racket Minimal Server with Static File Serving
#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)
@anthonyquizon
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment