From 4c559d53822e1910ab7ad6af5dfc93acab04ea3f Mon Sep 17 00:00:00 2001 From: Muhammad Faraz Maqsood Date: Tue, 22 Oct 2024 19:50:44 +0500 Subject: [PATCH] fix: uwsgi workers not starting properly --- ..._194734_faraz.maqsood_uwsgi_workers_not_starting_properly.md | 1 + .../templates/credentials/build/credentials/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/20241022_194734_faraz.maqsood_uwsgi_workers_not_starting_properly.md diff --git a/changelog.d/20241022_194734_faraz.maqsood_uwsgi_workers_not_starting_properly.md b/changelog.d/20241022_194734_faraz.maqsood_uwsgi_workers_not_starting_properly.md new file mode 100644 index 0000000..c5101ae --- /dev/null +++ b/changelog.d/20241022_194734_faraz.maqsood_uwsgi_workers_not_starting_properly.md @@ -0,0 +1 @@ +- [BugFix] Uwsgi workers wasn't starting properly using `UWSGI_WORKERS` flag, passing the value directly fixes the issue. (by @Faraz32123) diff --git a/tutorcredentials/templates/credentials/build/credentials/Dockerfile b/tutorcredentials/templates/credentials/build/credentials/Dockerfile index 6612e4a..4e47ac9 100644 --- a/tutorcredentials/templates/credentials/build/credentials/Dockerfile +++ b/tutorcredentials/templates/credentials/build/credentials/Dockerfile @@ -167,6 +167,6 @@ CMD ["uwsgi", \ "--thunder-lock", \ "--single-interpreter", \ "--enable-threads", \ - "--processes=${UWSGI_WORKERS:-2}", \ + "--processes=2", \ "--buffer-size=8192", \ "--wsgi-file", "credentials/wsgi.py"]