From 32e0407ea078230498caa9fca562abebf663ef57 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Mon, 12 Dec 2022 16:18:11 +0100 Subject: [PATCH] Use the WorkingDir parameter --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 9dc62c4..b90eb4d 100644 --- a/flake.nix +++ b/flake.nix @@ -131,7 +131,6 @@ pkgs.inventoryEnv inventory (pkgs.writeShellScriptBin "start-inventory" '' - cd /code if [ -f .second_run ]; then sleep 2 ${pkgs.python3}/bin/python manage.py collectstatic --noinput @@ -165,6 +164,7 @@ }; config = { Cmd = [ "start-inventory" ]; + WorkingDir = "/code"; Env = [ "POSTGRES_DB=network_inventory" "DJANGO_SETTINGS_MODULE=network_inventory.settings.production"