Serve

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/ orlayouts/ folders.

Usage

You can start the server by running plenti serve from inside your project's root folder.

Flags

LongShortDescription
--build=true
-b=trueSet 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
-MKeep files in memory instead of writing to filesystem. Speeds up subsequent builds for local dev.
--live-reload
-LAutomatically refreshes your browser when saving local development changes.
--ssl
-sAdd SSL/TLS cert to test your local environment over HTTPS.