From a1a1cd324466f66a00eec0a8d051952b8c723e97 Mon Sep 17 00:00:00 2001 From: Ophir Lojkine Date: Sat, 5 Dec 2026 20:58:51 +0000 Subject: [PATCH] Open the packaged SQLite catalog in the official-site container --- examples/official-site/Dockerfile | 3 +++ examples/official-site/app.json | 20 ++++++++++++++++++++ examples/official-site/test.hurl | 1 + 3 files changed, 24 insertions(+) create mode 100644 examples/official-site/app.json diff --git a/examples/official-site/Dockerfile b/examples/official-site/Dockerfile index de781b7d0..38c652ef2 100644 --- a/examples/official-site/Dockerfile +++ b/examples/official-site/Dockerfile @@ -2,3 +2,6 @@ FROM lovasoa/sqlpage:main ENV SQLPAGE_CONFIGURATION_DIRECTORY=/var/www/sqlpage COPY --chown=sqlpage:sqlpage . /var/www + +# Require the packaged catalog even when the deployment sets a database URL. +CMD ["/usr/bin/env", "SQLPAGE_DATABASE_URL=sqlite:///var/www/sqlpage/sqlpage.db?mode=rw", "/usr/local/bin/sqlpage"] diff --git a/examples/official-site/app.json b/examples/official-site/app.json new file mode 100644 index 000000000..96ed9ad55 --- /dev/null +++ b/examples/official-site/app.json @@ -0,0 +1,20 @@ +{ + "healthchecks": { + "web": [ + { + "type": "startup", + "name": "Homepage", + "port": 8080, + "path": "/", + "content": "/assets/landing/js/main.js" + }, + { + "type": "startup", + "name": "Example projects", + "port": 8080, + "path": "/examples/", + "content": "Developer UI" + } + ] + } +} diff --git a/examples/official-site/test.hurl b/examples/official-site/test.hurl index 37cf68ac5..78af88820 100644 --- a/examples/official-site/test.hurl +++ b/examples/official-site/test.hurl @@ -160,6 +160,7 @@ HTTP 200 [Asserts] body contains "Developer UI" body not contains "Roundest Pokemon" +body not contains "An error occurred" GET http://localhost:8080/not-a-real-doc-page HTTP 404