7 Deployment View

The Station runs as a single, systemd-managed service on the machine’s Raspberry Pi, restarted automatically if it fails, and started once the graphical session established by the power-up sequence from the System power concept is available.

Deployment of the Station
Figure 1. Deployment of the Station

Where does the Station run, which files does it keep, and how does it reach the Pods?

All data the Station persists, the recipe/ingredient/glass catalog, the ingredient-to-dispenser mapping, the active glass volumes and the fill levels, lives as plain files under the service’s working directory rather than a database server. This keeps the deployment self-contained on a single device, at the cost of tying correct operation to the service always being started from the intended working directory. The move to NixOS is decided (STA-006) and not done yet. See 11 Risks and Technical Debt.

Two build configurations exist side by side from the same codebase. A development and CI configuration runs against simulated Pods, so the Guest and Operator flows and the test suite can run without any Pod physically attached. The production configuration, the one built and packaged for the Raspberry Pi, always talks to real Pods over USB. Which one a given build uses is fixed at compile time, not chosen at runtime, so a shipped build cannot end up running against simulated hardware by accident.

Continue with 8 Cross-cutting Concepts.