Documentation
¶
Overview ¶
The servedir command starts an HTTP server, serving files from either the current directory or a specified directory, on the next free ephemeral port or a specified port.
go run foxygo.at/servedir@latest --help usage: servedir [-a] [-p <port>] [<dir>] Simple HTTP server, serving files from given directory. -a listen on all interfaces not just localhost (env: SERVEDIR_ALL_INTERFACES) -p int port number (default: os chosen free port) (env: SERVEDIR_PORT) <dir> defaults to current directory if not specified
Click to show internal directories.
Click to hide internal directories.