Mercurial > public > src > rhodecode
annotate docs/usage/git_support.rst @ 2119:82a88013a3fd
merge 1.3 into stable
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 26 Feb 2012 17:25:09 +0200 |
parents | docs/usage/enable_git.rst@bf263968da47 docs/usage/enable_git.rst@370e995e46c2 |
children | 934906f028b5 |
rev | line source |
---|---|
2111
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
1 .. _git_support: |
868 | 2 |
2111
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
3 GIT support |
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
4 =========== |
868 | 5 |
6 | |
2111
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
7 Git support in RhodeCode 1.3 was enabled by default. |
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
8 Although There are some limitations on git usage. |
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
9 |
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
10 - No hooks are runned for git push/pull actions. |
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
11 - logs in action journals don't have git operations |
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
12 - large pushes needs http server with chunked encoding support. |
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
13 |
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
14 if you plan to use git you need to run RhodeCode with some |
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
15 http server that supports chunked encoding which git http protocol uses, |
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
16 i recommend using waitress_ or gunicorn_ (linux only) for `paste` wsgi app |
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
17 replacement. |
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
18 |
2112
370e995e46c2
fixes in doc about waitress wsgi
Marcin Kuzminski <marcin@python-works.com>
parents:
2111
diff
changeset
|
19 To use waitress simply change change the following in the .ini file:: |
2111
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
20 |
2112
370e995e46c2
fixes in doc about waitress wsgi
Marcin Kuzminski <marcin@python-works.com>
parents:
2111
diff
changeset
|
21 use = egg:Paste#http |
2111
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
22 |
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
23 To:: |
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
24 |
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
25 use = egg:waitress#main |
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
26 |
2112
370e995e46c2
fixes in doc about waitress wsgi
Marcin Kuzminski <marcin@python-works.com>
parents:
2111
diff
changeset
|
27 And comment out bellow options:: |
2111
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
28 |
2112
370e995e46c2
fixes in doc about waitress wsgi
Marcin Kuzminski <marcin@python-works.com>
parents:
2111
diff
changeset
|
29 threadpool_workers = |
370e995e46c2
fixes in doc about waitress wsgi
Marcin Kuzminski <marcin@python-works.com>
parents:
2111
diff
changeset
|
30 threadpool_max_requests = |
370e995e46c2
fixes in doc about waitress wsgi
Marcin Kuzminski <marcin@python-works.com>
parents:
2111
diff
changeset
|
31 use_threadpool = |
370e995e46c2
fixes in doc about waitress wsgi
Marcin Kuzminski <marcin@python-works.com>
parents:
2111
diff
changeset
|
32 |
370e995e46c2
fixes in doc about waitress wsgi
Marcin Kuzminski <marcin@python-works.com>
parents:
2111
diff
changeset
|
33 |
370e995e46c2
fixes in doc about waitress wsgi
Marcin Kuzminski <marcin@python-works.com>
parents:
2111
diff
changeset
|
34 You can simply run `paster serve` as usual. |
2111
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
35 |
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
36 |
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
37 You can always disable git/hg support by editing a |
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
38 file **rhodecode/__init__.py** and commenting out backends |
868 | 39 |
40 .. code-block:: python | |
41 | |
42 BACKENDS = { | |
43 'hg': 'Mercurial repository', | |
44 #'git': 'Git repository', | |
45 } | |
46 | |
2111
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
47 .. _waitress: http://pypi.python.org/pypi/waitress |
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
48 .. _gunicorn: http://pypi.python.org/pypi/gunicorn |