Switch from uvicorn to gunicorn
This commit is contained in:
parent
0787a6e10f
commit
59f2add67f
7 changed files with 86 additions and 164 deletions
|
|
@ -65,7 +65,7 @@ in
|
|||
User = "strojnadzor";
|
||||
Group = "strojnadzor";
|
||||
ExecStartPre = "${strojnadzor}/bin/strojnadzor-admin migrate";
|
||||
ExecStart = "${strojnadzor}/bin/strojnadzor-admin runserver-uvicorn ${cfg.hostname} ${toString cfg.port}";
|
||||
ExecStart = "${strojnadzor}/bin/strojnadzor-admin runserver-gunicorn --bind ${cfg.hostname}:${toString cfg.port}";
|
||||
};
|
||||
environment.STROJNADZOR_DATA_DIR = "${cfg.stateDir}/data";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue