Skip to content

Commit b3e323f

Browse files
williamdesDeepSeek
andcommitted
docs: Say what a deployment has to do now that forwarding is a command
The deploy steps stopped at the migrations, and the three things that make the migration safe were only described in the section about the command: the model cache keeps the schema from before the migration, every stored incident looks like it is waiting to be forwarded, and nothing reaches the tracker until the cron exists. A deployment that follows the list as it was written stops forwarding in silence. Signed-off-by: William Desportes <williamdes@wdes.fr> Co-Authored-By: DeepSeek <noreply@deepseek.com>
1 parent c45840e commit b3e323f

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎docs/DEPLOYMENT.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,16 @@ In order to deploy the app in this repo you need to follow these steps:
4848
`bin/cake migrations migrate`
4949
- For new system: just run migration
5050
`bin/cake migrations migrate`
51+
- Clear the schema the application keeps in cache, or it keeps the one from
52+
before the migration: `bin/cake cache clear _cake_model_`
53+
- If the reports were stored before `forwarded_at` existed, they all look like
54+
they are waiting to be forwarded. Mark them as done **before** the cron of the
55+
next step runs, or the first run sends the whole history again, with new event
56+
ids and today's date: `UPDATE incidents SET forwarded_at = created;`
57+
- Install the cron that forwards the reports, `bin/cake forward_reports`, every
58+
minute or five minutes (see [Forward the reports to the tracker](#forward-the-reports-to-the-tracker)).
59+
**Nothing reaches the tracker without it**: the ingest endpoint stores the
60+
report and answers, it does not forward anything itself.
5161

5262
## Requirements
5363

0 commit comments

Comments
 (0)