server
The server command serves website files in a directory:
uwe server build/release
Now you can visit the site at http://localhost:8888
.
The server does not list directory content; it is expected that an index.html
file exists for each directory.
Usage
uwe-server 0.48.15
Serve static files
USAGE:
uwe server [FLAGS] [OPTIONS] [--] [project]
FLAGS:
-e, --exec Allow hook command execution
-h, --help Prints help information
-i, --include-drafts Include drafts
-O, --open Launch a web browser
-V, --version Prints version information
OPTIONS:
-a, --addr <addr> Bind address for the web server [default: 0.0.0.0]
--authority <authority>... Allow these virtual host authorities
-c, --config <config>... Config file
-d, --directory <directory> Directory to serve
-m, --member <member>... Filter on workspace members
-p, --port <port> The port number
--ssl-cert <ssl-cert> Path to an SSL certificate file [env: UWE_SSL_CERT]
--ssl-key <ssl-key> Path to an SSL key file [env: UWE_SSL_KEY]
--ssl-port <ssl-port> The port number for SSL
ARGS:
<project> Project path