serve
Serve the generated static site locally.
Usage
./ritual serve [options]
Options
| Option | Description | Default |
|---|---|---|
-p, --port <number> | Port to serve on | 3000 |
Examples
Serve on default port (3000):
./ritual serve
Serve on a custom port:
./ritual serve --port 8080
Typical Workflow
- Build the site:
./ritual build-site
- Serve it:
./ritual serve
- Open http://localhost:3000 in your browser
Notes
- The serve command serves files from the
dist/directory - Make sure to run
build-sitefirst to generate the content - Press
Ctrl+Cto stop the server