From 5cd85d38b182aee6ffaf1519834cabe17afc2af8 Mon Sep 17 00:00:00 2001 From: sinavir Date: Sun, 5 Jan 2025 00:13:25 +0100 Subject: [PATCH] fix(cas-eleves): Fix migration commands order --- machines/nixos/web02/cas-eleves/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/machines/nixos/web02/cas-eleves/default.nix b/machines/nixos/web02/cas-eleves/default.nix index 8a2dbca..d39a440 100644 --- a/machines/nixos/web02/cas-eleves/default.nix +++ b/machines/nixos/web02/cas-eleves/default.nix @@ -99,8 +99,8 @@ in path = [ pythonEnv ]; script = '' - python3 manage.py loaddata patterns python3 manage.py migrate + python3 manage.py loaddata patterns gunicorn app.wsgi --pythonpath ${sources.cas-eleves} -b 127.0.0.1:${builtins.toString port} --workers=2 --threads=4 ''; };