From 6788a1de029599f3c69c1ad3302c24f0a278e7d8 Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Wed, 30 Mar 2022 10:03:47 +0300 Subject: [PATCH] Prometheus muldiproc --- scripts/start.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/start.sh b/scripts/start.sh index 98491a8..187a42f 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -1,3 +1,7 @@ cd /app + +rm -rf prometheus +mkdir prometheus + alembic -c ./app/alembic.ini upgrade head -gunicorn -w 2 -k uvicorn.workers.UvicornWorker main:app --bind 0.0.0.0:8080 +gunicorn -w 2 -k uvicorn.workers.UvicornWorker main:app --bind 0.0.0.0:8080