GitHub sync doesn't run in production #239

Closed
opened 2024-10-02 08:23:50 +00:00 by fricklerhandwerk · 2 comments
fricklerhandwerk commented 2024-10-02 08:23:50 +00:00 (Migrated from github.com)

Deployment through the module uses daphne, while the initial sync is only run when doing manage runserver.

Make sure deployment always syncs on startup and sync can be ran manually in development mode.

[Deployment through the module uses `daphne`](https://github.com/Nix-Security-WG/nix-security-tracker/blob/main/nix/web-security-tracker.nix#L217-L218), while the initial sync is [only run when doing `manage runserver`](https://github.com/Nix-Security-WG/nix-security-tracker/blob/main/src/website/shared/apps.py#L15). Make sure deployment always syncs on startup and sync can be ran manually in development mode.
RaitoBezarius commented 2024-10-02 14:50:33 +00:00 (Migrated from github.com)

I think this is quite brittle for production, the logic should be extracted to a management command, run as part of the ExecStartPre, it can be kept for development purpose there.

I think this is quite brittle for production, the logic should be extracted to a management command, run as part of the ExecStartPre, it can be kept for development purpose there.
fricklerhandwerk commented 2024-10-02 14:52:34 +00:00 (Migrated from github.com)

Updated the description

Updated the description
Sign in to join this conversation.
No description provided.