From ee8dcbd434f698772cac1c60b5f4e9742501dd1a Mon Sep 17 00:00:00 2001 From: Mark Meyer Date: Tue, 26 Sep 2023 12:43:47 -0800 Subject: [PATCH] make number of workers a variable so it can be set differently in different environments --- Procfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Procfile b/Procfile index b52b8453..82be1677 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: gunicorn -b :$PORT training.main:app --workers 4 --worker-class uvicorn.workers.UvicornWorker \ No newline at end of file +web: gunicorn -b :$PORT training.main:app --workers $NUM_WORKERS --worker-class uvicorn.workers.UvicornWorker \ No newline at end of file