sot: fix missing mime.txt
This commit is contained in:
parent
8c72184d19
commit
47215df902
2 changed files with 35 additions and 1 deletions
33
readme.md
33
readme.md
|
@ -73,6 +73,39 @@ my development machine, for example, is Dell Inspiron 7348 with Core i7
|
|||
for unix systems, the provided `flake.nix` can be used with `nix develop` to
|
||||
open a shell with all needed system dependencies.
|
||||
|
||||
## Deployment
|
||||
|
||||
There are two primary server components to be deployed: the web server and the
|
||||
sourth of truth server. The latter is a singleton that runs on Clover's NAS,
|
||||
which holds the full contents of the file storage. The web server pulls data
|
||||
from the source of truth and renders web pages, and can be duplicated to
|
||||
multiple cloud hosts without issue.
|
||||
|
||||
Deployment of the source of truth can be done with Docker Compose:
|
||||
|
||||
services:
|
||||
backend:
|
||||
container_name: backend
|
||||
build:
|
||||
# this uses loopback to hit the self-hosted git server
|
||||
context: http://localhost:3000/clo/sitegen.git
|
||||
dockerfile: src/source-of-truth.dockerfile
|
||||
environment:
|
||||
# configuration
|
||||
- PORT=43200
|
||||
- CLOVER_DB=/data
|
||||
- CLOVER_FILE_RAW=/published
|
||||
- CLOVER_FILE_DERIVED=/data/derived
|
||||
- CLOVER_SOT_KEY=... # guards private/unreleased content
|
||||
ports:
|
||||
- '43200:43200'
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /mnt/storage1/clover/Documents/Config/paperclover:/data
|
||||
- /mnt/storage1/clover/Published:/published
|
||||
|
||||
TODO: deployment instructions for a web node
|
||||
|
||||
## Contributions
|
||||
|
||||
No contributions to `src` accepted, only `framework`.
|
||||
|
|
|
@ -14,7 +14,8 @@ run npx esbuild --bundle \
|
|||
--minify \
|
||||
--sourcemap=linked \
|
||||
--entry-names=index \
|
||||
--outdir=/app
|
||||
--outdir=/app \
|
||||
&& cp framework/lib/mime.txt /app/
|
||||
|
||||
from node:24-alpine as runtime
|
||||
|
||||
|
|
Loading…
Reference in a new issue