Last updated:
0 purchases
serve
serve #
CLI to serves static files in a directory. Simpler to Python's python -m SimpleHTTPServer.
Installing #
pub global activate serve
copied to clipboard
Serve files in current directory #
serve
copied to clipboard
This command by default serves content of current directory on port 8080 and host 0.0.0.0.
Configure host and port #
Use --host (abbreviation -H) and --port (abbreviation -p) to serve on a desired host and port.
serve -h localhost -p 8081
copied to clipboard
Serve content of specific directory #
Use --dir (abbreviated as -d) to serve contents of a desired directory.
serve -d /home/myname/mysite
copied to clipboard
Serve at a given base path #
Use --base-path (abbreviated as -b) to serve contents with desired base path.
serve -b /myblog
copied to clipboard
More features to come! #
❌ Support CORS
❌ Support reverse proxy
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.