Description
Starts up a lightweight webserver you can use for local development. This will run the build in the background when you first run the command, and any time that you change a file in your
content/
or
layouts/
folders.
Usage
You can start the server by running plenti serve
from inside your project's root folder.Flags
Long | Short | Description |
---|
--build=true
| -b=true | Set to "false" to disable the build step and use existing "public" directory. |
--output=public
| -o=public
| Change the name of the build directory. |
--port=3000
| -p=3000
| Change the port for the local webserver. This can be helpful when running multiple websites at the same time. |
--in-memory
| -M | Keep files in memory instead of writing to filesystem. Speeds up subsequent builds for local dev. |
--live-reload
| -L | Automatically refreshes your browser when saving local development changes. |
--ssl
| -s | Add SSL/TLS cert to test your local environment over HTTPS. |