Need to set the PYTHONPATH somehow
This commit is contained in:
parent
1271ce614a
commit
b96682c40f
|
@ -24,10 +24,15 @@ let
|
|||
in pkgs.writeShellApplication {
|
||||
name = "objectifier";
|
||||
runtimeInputs = [ pythonYolo ];
|
||||
text = pkgs.lib.concatStringsSep " " [
|
||||
text = let
|
||||
script = pkgs.lib.concatStringsSep " " [
|
||||
"gunicorn"
|
||||
"objectifier:app"
|
||||
"-k uvicorn.workers.UvicornWorker"
|
||||
''"$@"''
|
||||
];
|
||||
in ''
|
||||
PYTHONPATH="$PYTHONPATH:${objectifier-src}"
|
||||
${script}
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue