Skip to main content

serve

Serve the generated static site locally.

Usage

./ritual serve [options]

Options

OptionDescriptionDefault
-p, --port <number>Port to serve on3000

Examples

Serve on default port (3000):

./ritual serve

Serve on a custom port:

./ritual serve --port 8080

Typical Workflow

  1. Build the site:
./ritual build-site
  1. Serve it:
./ritual serve
  1. Open http://localhost:3000 in your browser

Notes

  • The serve command serves files from the dist/ directory
  • Make sure to run build-site first to generate the content
  • Press Ctrl+C to stop the server