Revision d3840a05 docs/quick-install-admin-guide.rst

b/docs/quick-install-admin-guide.rst
202 202
Gunicorn setup
203 203
~~~~~~~~~~~~~~
204 204

  
205
Create the file ``/etc/gunicorn.d/synnefo`` containing the following:
205
Rename the file ``/etc/gunicorn.d/synnefo.example`` to
206
``/etc/gunicorn.d/synnefo``, to make it a valid gunicorn configuration file:
206 207

  
207 208
.. code-block:: console
208 209

  
209
    CONFIG = {
210
     'mode': 'django',
211
     'environment': {
212
       'DJANGO_SETTINGS_MODULE': 'synnefo.settings',
213
     },
214
     'working_dir': '/etc/synnefo',
215
     'user': 'www-data',
216
     'group': 'www-data',
217
     'args': (
218
       '--bind=127.0.0.1:8080',
219
       '--worker-class=gevent',
220
       '--workers=8',
221
       '--log-level=debug',
222
     ),
223
    }
210
    # mv /etc/gunicorn.d/synnefo.example /etc/gunicorn.d/synnefo
211

  
224 212

  
225 213
.. warning:: Do NOT start the server yet, because it won't find the
226 214
    ``synnefo.settings`` module. Also, in case you are using ``/etc/hosts``
......
388 376
Gunicorn setup
389 377
~~~~~~~~~~~~~~
390 378

  
391
Create the file ``/etc/gunicorn.d/synnefo`` containing the following
392
(same contents as in node1; you can just copy/paste the file):
379
Rename the file ``/etc/gunicorn.d/synnefo.example`` to
380
``/etc/gunicorn.d/synnefo``, to make it a valid gunicorn configuration file
381
(as happened for node1):
393 382

  
394 383
.. code-block:: console
395 384

  
396
    CONFIG = {
397
     'mode': 'django',
398
     'environment': {
399
      'DJANGO_SETTINGS_MODULE': 'synnefo.settings',
400
     },
401
     'working_dir': '/etc/synnefo',
402
     'user': 'www-data',
403
     'group': 'www-data',
404
     'args': (
405
       '--bind=127.0.0.1:8080',
406
       '--worker-class=gevent',
407
       '--workers=4',
408
       '--log-level=debug',
409
       '--timeout=43200'
410
     ),
411
    }
385
    # mv /etc/gunicorn.d/synnefo.example /etc/gunicorn.d/synnefo
386

  
412 387

  
413 388
.. warning:: Do NOT start the server yet, because it won't find the
414 389
    ``synnefo.settings`` module. Also, in case you are using ``/etc/hosts``

Also available in: Unified diff