Commit fcc14ee1d2cffbe42271c95b36f4257d73b82e67

Authored by Sergio Oliveira
1 parent fb00ee25

Using gunicorn config file

puppet/modules/colab/manifests/init.pp
@@ -45,7 +45,7 @@ class colab { @@ -45,7 +45,7 @@ class colab {
45 } 45 }
46 46
47 supervisor::app { 'colab': 47 supervisor::app { 'colab':
48 - command => '/home/colab/.virtualenvs/colab/bin/gunicorn colab.wsgi:application --timeout=300 --worker-class=gevent --workers=5', 48 + command => '/home/colab/.virtualenvs/colab/bin/gunicorn colab.wsgi:application -c colab/gunicorn.conf.py',
49 directory => '/home/colab/colab/src/', 49 directory => '/home/colab/colab/src/',
50 user => 'colab', 50 user => 'colab',
51 } 51 }
src/colab/gunicorn.conf.py 0 → 100644
@@ -0,0 +1,7 @@ @@ -0,0 +1,7 @@
  1 +
  2 +import multiprocessing
  3 +
  4 +bind = "127.0.0.1:8000"
  5 +workers = multiprocessing.cpu_count() + 1
  6 +timeout = 300
  7 +worker_class = 'gevent'