mix sayfa.serve (Sayfa v0.5.0)

Copy Markdown View Source

Starts a development server with live reload.

Usage

mix sayfa.serve [--port PORT] [--source DIR] [--output DIR] [--no-drafts] [--verbose]

Options

  • --port — HTTP port (default: 4000)
  • --source — content source directory (default: content)
  • --output — output directory (default: dist)
  • --no-drafts — exclude draft content (drafts are included by default in serve mode)
  • --verbose — print detailed build information

Description

Performs an initial build, then starts an HTTP server serving the output directory. Watches content, theme, and config directories for changes and automatically rebuilds + live-reloads the browser.

Press Ctrl+C to stop.