A simple HTTP server that can serve up any directory.
Inspired by python -m SimpleHTTPServer
.
Use the pub global
command to install this into your system.
$ pub global activate simple_http_server
If you have modified your PATH, you can run this server from any local directory
$ simple_http_server
Otherwise you can use the pub global
command.
$ pub global run simple_http_server
--port
- Set the port. Defaults to 8080.