From: nutra-bot Date: Thu, 20 Apr 2023 02:10:46 +0000 (+0000) Subject: only 1 worker on dev too (for ntserv) X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=f104b536d9064713141139d4a89a15b17b2b679f;p=nutratech%2Fvps-root.git only 1 worker on dev too (for ntserv) --- diff --git a/etc/systemd/system/ntserv.service b/etc/systemd/system/ntserv.service index a92465f..ad798ee 100644 --- a/etc/systemd/system/ntserv.service +++ b/etc/systemd/system/ntserv.service @@ -3,7 +3,7 @@ Description=NT Server (Sanic / Postgres) [Service] User=github -ExecStart=/usr/bin/env python3 -m sanic ntserv.routes:app --host=127.0.0.1 --port=20000 --workers=2 +ExecStart=/usr/bin/env python3 -m sanic ntserv.routes:app --host=127.0.0.1 --port=20000 --workers=1 Restart=always Environment="NTSERV_ENV=dev" "NTSERV_SERVER_HOST=https://dev.nutra.tk" "NTSERV_PSQL_PASSWORD=REDACTED" "NTSERV_JWT_SECRET=secret" "NTSERV_PROXY_SECRET=secret"