From b113cd798f17682b0953c44a208602ab49eb1d1c Mon Sep 17 00:00:00 2001 From: Jenny Duckett Date: Wed, 22 Jul 2015 17:29:14 +0100 Subject: [PATCH] Add a Procfile We need this to deploy MapIt as a normal app in our infrastructure. This file is very similar to the one for Stagecraft: https://github.com/alphagov/stagecraft/commit/3eff938ad04427758e66599bac0b6c6811e4d41c MapIt gets less than 5 requests a second on average, and each request completes in well under half a second, so 8 workers on each machine is generous. We need a single machine to be able to handle all production traffic while we update the database using our current process, so this seems reasonable. --- Procfile | 1 + 1 file changed, 1 insertion(+) create mode 100644 Procfile diff --git a/Procfile b/Procfile new file mode 100644 index 00000000..776fa204 --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +web: ./venv/bin/gunicorn project.wsgi:application --bind 127.0.0.1:3108 --workers 8