blob: 15d8a3cf5dda81d5b427cfa889801ca8bf77c8ab (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
.TH SSG-SERVE 1 "December 2025" "ssg" "User Commands"
.SH NAME
ssg-serve \- serve the site locally
.SH SYNOPSIS
.B ssg serve
.RI [ options ]
.SH DESCRIPTION
Start a local HTTP server to preview the built site.
.SH OPTIONS
.TP
.BI \-dir " dir"
Directory to serve. Default: dist
.TP
.BI \-addr " address"
Address to listen on. Default: :8080
.SH EXAMPLES
Serve the default output directory:
.PP
.RS
.nf
$ ssg serve
.fi
.RE
.PP
Serve on a different port:
.PP
.RS
.nf
$ ssg serve -addr=:3000
.fi
.RE
.PP
Build and serve:
.PP
.RS
.nf
$ ssg build && ssg serve
.fi
.RE
.SH SEE ALSO
.BR ssg-build (1)
.SH SSG
Part of the
.BR ssg (1)
suite.
|