From 63abf745e9e7957cf8e415258e3bc8a9eef622d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=ABss=20Treinis?= Date: Sun, 16 May 2021 21:42:03 +0200 Subject: [PATCH] Cleanup, enable uWSGI threads --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c588880..0003286 100644 --- a/Makefile +++ b/Makefile @@ -52,9 +52,6 @@ assemble: # INTERNAL: assemble deployment asset for deployment # Use local install .venv and node_modules to reuse local install as sort of a cache cp -R .venv tmp/deploy cp -R frontend/node_modules tmp/deploy/frontend - # Use local Makefile within the build TODO rm - cp Makefile tmp/deploy - cp docker-compose.production.yml tmp/deploy/docker-compose.production.yml # Build dependencies LOCAL_UID=${CURRENT_UID} LOCAL_GID=${CURRENT_GID} docker-compose run -u ${CURRENT_UID} frontend /bin/bash -c 'cd /app/tmp/deploy/ && make assemble-frontend' LOCAL_UID=${CURRENT_UID} LOCAL_GID=${CURRENT_GID} docker-compose run -u ${CURRENT_UID} web /bin/bash -c 'cd /app/tmp/deploy/ && make assemble-web' @@ -107,6 +104,8 @@ uwsgi: # INTERNAL - start UWSGI server, within production image --pidfile=/tmp/almalinux.org.pid \ --socket=0.0.0.0:9000 \ --processes=4 \ + --enable-threads \ + --threads=2 \ --harakiri=20 \ --max-requests=5000 \ --vacuum