Commit Graph

13 Commits

Author SHA1 Message Date
Klaas van Schelven
8b18939c6f coverage: configure for local development 2025-03-19 10:09:51 +01:00
Klaas van Schelven
5559fba754 Introduce FileEventStorage
An (optional) way to store the `event_data` (full event as JSON)
outside the DB. This is expected to be useful for larger setups,
because it gives you:

* A more portable database (e.g. backups); (depeding on event size
  the impact on your DB is ~50x.
* Less worries about hitting "physical" limits (e.g. disk size, max
  file size) for your DB.

Presumably (more testing will happen going forwards) it will:

* Speed up migrations (especially on sqlite, which does full table
  copies)
* Speed up event ingestion(?)

Further improvements in this commit:

* `delete_with_limit` was removed; this removes one tie-in to MySQL/Sqlite
    (See #21 for this bullet)
2025-02-12 17:11:24 +01:00
Klaas van Schelven
e18cdac8ea Ignore built Docker images 2024-08-29 11:02:50 +02:00
Klaas van Schelven
00af16b747 gitignore update for package name-change 2024-08-26 09:20:36 +02:00
Klaas van Schelven
0f0a4f996c DDD: whitenoise
Why?

> One is that WhiteNoise is designed to work in situations where Apache, nginx
> and the like aren’t easily available. But more importantly, it’s easy to
> underestimate what’s involved in serving static files correctly

We deal with both these situations:

* for local development, we recommend running with DEBUG=False and still want to
  sever staticfiles

* for deploying using nginx/whatever, I'd like to keep my instructions as simple
  as possible, and doing this right once (in whitenoise) saves us from having to
  come up with the right instructions for a bunch of webservers.
2024-05-16 10:31:59 +02:00
Klaas van Schelven
c1fdb3b591 Proof of Concept for pyproject.toml 2024-05-15 13:32:11 +02:00
Klaas van Schelven
3e2b6965f9 settings/development.py and create_example_conf working 2024-05-14 11:24:59 +02:00
Klaas van Schelven
318a26526d Yet another WIP 2024-04-19 14:01:06 +02:00
Klaas van Schelven
8c7e1f1cf2 Configure sqlite WAL and related PRAGMAs 2024-04-17 21:50:39 +02:00
Klaas van Schelven
334e04d133 Fix django_tailwind
I was missing package.json in git due to a too liberal .gitignore conf.
This botched tailwind when I restarted from a fresh git install

I never ran into this before b/c tailwind's npm stuff is only necessary during
development, not in e.g. localbugsink (because we checkin all outputs too)
2024-03-20 20:48:16 +01:00
Klaas van Schelven
79e333c923 tailwind 2023-11-08 20:16:10 +01:00
Klaas van Schelven
bfea1b30cc Last time's work: we can get something on-screen now 2023-11-03 19:25:26 +01:00
Klaas van Schelven
c1ef476355 .gitignore 2023-10-29 16:44:51 +01:00