Serve
Production
omnisrv site
This starts server at http://localhost:8080, rendering pages in site directory.
Thanks to built-in cache, the performance is good.
Use omnisrv -h for more arguments.
Preview
omnisrv -dev site
-dev disables cache, enabling edit-then-refresh (F5 in browser) workflow.
Caching
Without -dev, modifications are reflected after at most 20 seconds.
- Rendered page cache: 10s, web server cache: 10s.
- Unmodified pages are cached by browsers.
Protocol
-proto (alias) |
-addr |
|---|---|
tcp (http) |
hostname:port |
unix (socket) |
filesystem path |
stdio |
- |