2015-12-19 14:52:17 +01:00
|
|
|
comment: This file is auto generated by dump-cli-help.py
|
|
|
|
---
|
|
|
|
title: server
|
|
|
|
---
|
|
|
|
summary: Launch a local server.
|
|
|
|
---
|
|
|
|
type: cmdlet
|
|
|
|
---
|
|
|
|
body:
|
|
|
|
|
|
|
|
`lektor server`
|
|
|
|
|
|
|
|
The server command will launch a local server for development.
|
|
|
|
|
2022-01-11 22:26:03 +01:00
|
|
|
Lektor's development server will automatically build all files into
|
2015-12-19 14:52:17 +01:00
|
|
|
pages similar to how the build command with the `--watch` switch
|
|
|
|
works, but also at the same time serve up the website on a local
|
|
|
|
HTTP server.
|
|
|
|
|
2022-01-11 22:26:03 +01:00
|
|
|
Exporting the `LEKTOR_DEV=1` environment variable will also enable
|
|
|
|
[Jinja debug extension :ext](https://jinja.palletsprojects.com/en/3.0.x/extensions/#debug-extension).
|
|
|
|
|
2015-12-19 14:52:17 +01:00
|
|
|
## Options
|
|
|
|
|
|
|
|
- `-h, --host TEXT`: The network interface to bind to. The default is the
|
|
|
|
loopback device, but by setting it to 0.0.0.0 it becomes available on
|
|
|
|
all network interfaces.
|
|
|
|
- `-p, --port INTEGER`: The port to bind to.
|
|
|
|
- `-O, --output-path PATH`: The dev server will build into the same folder
|
|
|
|
as the build command by default.
|
|
|
|
- `-v, --verbose`: Increases the verbosity of the logging.
|
|
|
|
- `-f, --build-flag TEXT`: Defines an arbitrary build flag. These can be
|
|
|
|
used by plugins to customize the build process. More information can be
|
|
|
|
found in the documentation of affected plugins.
|
2022-01-11 22:26:03 +01:00
|
|
|
- `--help`: print this help page.
|