Oops, wrapped the wrong list...
This commit is contained in:
parent
463f5dd9d8
commit
6130473dfb
@ -74,15 +74,15 @@ in {
|
|||||||
Type = "simple";
|
Type = "simple";
|
||||||
PIDFile = "/run/objectifier.pid";
|
PIDFile = "/run/objectifier.pid";
|
||||||
ExecStart = let
|
ExecStart = let
|
||||||
bindClause =
|
bindClause = concatStringsSep " "
|
||||||
map (addr: "--bind ${addr}:${cfg.port}") cfg.listen-addresses;
|
(map (addr: "--bind ${addr}:${cfg.port}") cfg.listen-addresses);
|
||||||
in (concatStringsSep " " [
|
in (concatStringsSep " " [
|
||||||
"gunicorn"
|
"gunicorn"
|
||||||
bindClause
|
bindClause
|
||||||
"--workers ${cfg.workers}"
|
"--workers ${cfg.workers}"
|
||||||
"-k uvicorn.workers.UvicornWorker"
|
"-k uvicorn.workers.UvicornWorker"
|
||||||
"objectifier:app"
|
|
||||||
"--pid /run/objectifier.pid"
|
"--pid /run/objectifier.pid"
|
||||||
|
"objectifier:app"
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user