Genie.serve
โ Functionserve(path::String = pwd(), params...; kwparams...)
Serves a folder of static files located at path
. Allows Genie to be used as a static files web server. The params
and kwparams
arguments are forwarded to Genie.startup()
.
Arguments
path::String
: the folder of static files to be served by the serverparams
: additional arguments which are passed toGenie.startup
to control the web serverkwparams
: additional keyword arguments which are passed toGenie.startup
to control the web server
Examples
julia> Genie.serve("public", 8888, async = false, verbose = true)
[ Info: Ready!
2019-08-06 16:39:20:DEBUG:Main: Web Server starting at http://127.0.0.1:8888
[ Info: Listening on: 127.0.0.1:8888
[ Info: Accept (1): ๐ 0โ 0โ 1s 127.0.0.1:8888:8888 โฃ16