From 5740f93bea8f1277b2d398e2e2233dba0301570c Mon Sep 17 00:00:00 2001 From: Benjamin Bertrand <benjamin.bertrand@esss.se> Date: Tue, 2 Jan 2018 16:44:16 +0100 Subject: [PATCH] Add run_uwsgi rule to run the app with uwsgi Enable to run the application closer to the production environment --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index da923b5..5dbc28b 100644 --- a/Makefile +++ b/Makefile @@ -53,3 +53,6 @@ db_image: ## start postgres and redis to test the latest image test_image: ## run the tests (on the latest image) # Pass docker-compose.yml to skip docker-compose.override.yml docker-compose -f docker-compose.yml run --rm web + +run_uwsgi: ## run the application with uwsgi (to test prod env) + docker-compose run -p 8000:8000 --rm web uwsgi --master --http 0.0.0.0:8000 --http-keepalive --manage-script-name --mount /csentry=wsgi.py --callable app --uid ics --processes 2 -- GitLab