Attributes
Includes Deno configuration
Repository
Current version released
5 months ago
Dependencies
Versions
LumeCMS Adapter
LumeCMS adapter to run with Lume (SSG) in a VPS easily.
Usage
- In your Lume project directory, make sure the files
_config.ts
and_cms.ts
exists. - Run
deno serve -Ar https://deno.land/x/lume_cms_adapter/mod.ts
.
This starts a Deno server under the port 8000
(see
deno serve to learn how to
configure it) that works as a reverse proxy. In the first request, it starts
another server on demand in the port 3000
with LumeCMS.
reverse proxy (8000) <-- on demand server (3000)
You can change the port of the proxy server with the --port
flag:
deno serve -Ar https://deno.land/x/lume_cms_adapter/mod.ts --port=8888
# reverse proxy (8000) <-- on demand server (8888)
Use --show-terminal
to show the terminal output of the Lume build at the cold
start:
deno serve -Ar https://deno.land/x/lume_cms_adapter/mod.ts --show-terminal
Use --
to pass arguments to LumeCMS. For example, if your public URL is
https://example.com
and want to configure the Lume site with this location:
deno serve -Ar https://deno.land/x/lume_cms_adapter/mod.ts --port=8888 -- --location=https://example.com
# reverse proxy (8000) <-- on demand server (8888) --location=https://example.com