Lesson 7 / 9
Technical matters
For whoever runs the server: the health check, the settings and the documentation.
This chapter is for whoever runs the server. All the settings come from the server's environment (environment variables); there is no screen to change them.
What runs
On a real server three processes run from the same image:
| Process | What it does |
|---|---|
release |
Once per new version: updates the database and prepares the static files |
web |
The website itself |
clock |
The apps' maintenance (study_sweep), every hour; exactly one of these runs |
The maintenance marks stuck generations of Chat and Imagine as failed, so the
group can carry on. In Casette it stops silent recordings and deletes
recordings older than the workshop's retention period. Every hour is the
default; STUDY_SWEEP_INTERVAL sets the number of seconds.
The main settings
| Name | What for |
|---|---|
ENVIRONMENT |
development, staging or production |
DATABASE_URL |
the database; empty means SQLite in the data folder |
STUDY_DATA_DIR |
the data folder: database, files and protected uploads |
STUDY_MEDIA_STORAGE |
local (files on the server) or s3 (a bucket) |
MISTRAL_API_KEY, FLUX_API_KEY |
the keys of the two providers, see Providers and keys |
WORKSHOP_PASSWORD |
the password for participants when a workshop has none of its own |
EMAIL_URL |
outgoing mail: forgotten passwords and the postcards |
SENTRY_DSN |
error reports to Sentry |
LOG_FORMAT |
plain or json |
The full list is in env.example and in study-server's README. Only put keys
and passwords in the environment, never in a file you share.
Personal data
Photos and answers from PromptWalk and Casette's recordings are personal data. The server keeps them protected, not with the public files. You look at them in the dashboard.
Documentation
make startin study-server also starts the technical documentation, on port 8101 (http://localhost:8101).- The Info page in the dashboard links to the documentation of the platform and of the base, and to the workshop contract.
Server health check
At /healthz/ the server answers with a short check. You need no account for
it. The answer is not a web page but text in JSON:
| Field | Meaning |
|---|---|
status |
ok if the server is running and the database answers, otherwise error |
version |
the server's version |
environment |
development, staging or production |
database |
ok if the database answers |
apps |
the apps installed on the server |
missing |
apps that should be there but are missing; empty is good |
A hosting platform uses this page to see whether the server is healthy. You can use it to check quickly whether the server is running and which version is installed.
Files for search engines and AI
Besides /healthz/ the server has a few fixed files at the top level, with
no language in the address and no account needed:
| Address | For whom | What is in it |
|---|---|---|
/robots.txt |
search engines | what they may read: the public website yes; the dashboard, the accounts, the admin and the API no |
/sitemap.xml |
search engines | the public pages, in Dutch and in English |
/llms.txt |
AI assistants | what Starling Study is and a list of the public pages |
/llms-full.txt |
AI assistants | all the public pages one after the other, as Markdown |
The picture shows /llms.txt. The text is in English; the pages are listed
per language, each with a link to its Markdown version (index.md after the
page's address).
You do not need to maintain these files: the server makes them from the
public pages and the site's address. If the address is wrong (it says
localhost, for example), the server's address is set up incorrectly; ask
the server's administrator.