Start static server with cli. It only provid a simple web server for browse a html page. A proxy server can be lauched up when a proxy json file is existed.
install via npm
npm instal kml-static-server
or install from source code
git clone https://github.com/lintry/static-server.git
cd static-server
npm link
kml-server-cli start
Usage: start|i [options] [path...]
start <path> <path> <path>
Options:
-P --port bind port
-S --silent do not auto open browser
-X --proxy [table] use proxy table file (default: proxy.json)
-h, --help output usage information
After start a new server, you can press CTRL-C
to stop it;
kml-server-cli init
Usage: init [options] [file]
create init proxy table json, default name is proxy.json