Alcove is one program. It applies the migrations, builds the site into dist/, serves it, and rebuilds when a file changes. A failed rebuild is logged and the previous site keeps being served.
Flag
Default
Meaning
-dir
./content
The content folder
-port
8080
Port on localhost
-migrations
next to -dir
The migrations folder
-check
off
Check the content and exit with 0 or 1
-minify
off
Minify CSS, JS and HTML
-drafts
off
Include pages with draft: true
-seed-admin
off
Create the admin from ALCOVE_ADMIN_PASSWORD and exit
The server only listens on localhost, so it runs behind a reverse proxy. These are the files this site runs with:
query: |
SELECT sqlite_version() AS sqlite,
(SELECT count(*) FROM alcove_migrations) AS applied,
(SELECT group_concat(name, ', ') FROM (SELECT name FROM alcove_migrations ORDER BY name)) AS names,
(SELECT count(*) FROM guestbook) AS lines