on build page, mention that changes can be tested easily with mox localserve

This commit is contained in:
Mechiel Lukkien 2024-03-17 07:58:02 +01:00
parent 79fb72f3cd
commit 25b2ea164f
No known key found for this signature in database
2 changed files with 5 additions and 3 deletions

View file

@ -80,11 +80,11 @@ const elem = (name, ...s) => {
e.append(...s) e.append(...s)
return e return e
} }
const link = (url) => { const link = (url, anchor) => {
const e = document.createElement('a') const e = document.createElement('a')
e.setAttribute('href', url) e.setAttribute('href', url)
e.setAttribute('rel', 'noopener') e.setAttribute('rel', 'noopener')
e.appendChild(document.createTextNode(url)) e.append(anchor || url)
return e return e
} }
let h = location.hash.substring(1) let h = location.hash.substring(1)
@ -106,6 +106,8 @@ const init = () => {
'https://beta.gobuilds.org/github.com/mjl-/mox@'+h 'https://beta.gobuilds.org/github.com/mjl-/mox@'+h
), ),
elem('p', 'Because mox is written in Go, builds are reproducible, also when cross-compiling. Gobuilds.org is a service that builds Go applications on-demand with the latest Go toolchain/runtime.'), elem('p', 'Because mox is written in Go, builds are reproducible, also when cross-compiling. Gobuilds.org is a service that builds Go applications on-demand with the latest Go toolchain/runtime.'),
elem('h1', 'Localserve'),
elem('p', 'Changes to mox can often be most easily tested locally with ', link('../features/#hdr-localserve', '"mox localserve"'), ', without having to update your running mail server.'),
) )
} }
window.addEventListener('load', init) window.addEventListener('load', init)

View file

@ -436,7 +436,7 @@ in the [quickstart command](../commands/#hdr-mox-quickstart).
## Localserve ## Localserve
The [mox localserve](../commands/#hdr-mox-localserve) starts a local mox The [mox localserve](../commands/#hdr-mox-localserve) command starts a local mox
instance with a lot of its functionality: SMTP/submission, IMAP4, Webmail, instance with a lot of its functionality: SMTP/submission, IMAP4, Webmail,
account and admin web interface and the webserver. Localserve listens on the account and admin web interface and the webserver. Localserve listens on the
standard ports + 1000, so no special privileges are needed. standard ports + 1000, so no special privileges are needed.