git_support.rst
49 lines
| 1.1 KiB
| text/x-rst
|
RstLexer
r2023 | .. _git_support: | |||
r2095 | =========== | |||
r2023 | GIT support | |||
=========== | ||||
Mads Kiilerich
|
r4902 | Kallithea Git support is enabled by default. You just need a git | ||
command line client installed on the server to make Git work fully. | ||||
r2325 | ||||
Mads Kiilerich
|
r4902 | Web server with chunked encoding | ||
-------------------------------- | ||||
r3224 | ||||
Mads Kiilerich
|
r4902 | Large Git pushes do however require a http server with support for chunked encoding for POST. | ||
r2023 | ||||
Mads Kiilerich
|
r4902 | The Python web servers waitress_ and gunicorn_ (linux only) can be used. | ||
By default, Kallithea uses waitress_ for `paster serve` instead of the built-in `paste` WSGI server. | ||||
r2023 | ||||
Mads Kiilerich
|
r4902 | The default paste server is controlled in the .ini file:: | ||
r3224 | ||||
r2023 | use = egg:waitress#main | |||
r2325 | or:: | |||
use = egg:gunicorn#main | ||||
r3224 | ||||
Mads Kiilerich
|
r4902 | Also make sure to comment out the following options:: | ||
r2023 | ||||
r3224 | threadpool_workers = | |||
threadpool_max_requests = | ||||
use_threadpool = | ||||
r2024 | ||||
Mads Kiilerich
|
r4902 | Disabling Git | ||
------------- | ||||
r3224 | ||||
You can always disable git/hg support by editing a | ||||
Mads Kiilerich
|
r4902 | file **kallithea/__init__.py** and commenting out the backend. | ||
r2023 | ||||
.. code-block:: python | ||||
r3224 | ||||
r2023 | BACKENDS = { | |||
'hg': 'Mercurial repository', | ||||
#'git': 'Git repository', | ||||
} | ||||
.. _waitress: http://pypi.python.org/pypi/waitress | ||||
r3224 | .. _gunicorn: http://pypi.python.org/pypi/gunicorn | |||