Files @ bce8e20057e1
Branch filter:

Location: kallithea/docs/installation.rst - annotation

bce8e20057e1 4.3 KiB text/prs.fallenstein.rst Show Source Show as Raw Download as Raw
Thomas De Schampheleire
repository summary: avoid table bleed on long commit messages

For commit messages with the first line being very long, the 'latest
changes' table on the repository overview page can 'bleed', so that the
commit number overlaps with the commit status.

Commit 15cb8156b10d732cf39b37a88c656894621c0f54 changed the initial truncate
on 50 characters to a chop at the first newline characters, causing this
issue to pop up more frequently.

Instead of using floating divs for the commit status and number of comments,
use dedicated table columns, as compact as possible.
Additionally, move these new columns to the very left of the table, instead
of cramming them in between the revision and commit message.

The comments-container class gets a new attribute 'white-space: nowrap' to
avoid the comment icon to wrap from the number of comments, when the table
does wrap on a small screen.
Note that the icon currently does not display as it should be renamed from
icon-comment-alt/colored to icon-comment. This will be fixed by Sean Farley.
5f481e4e888b
5f481e4e888b
d95ea48af67b
d95ea48af67b
d95ea48af67b
5f481e4e888b
e73a69cb98dc
8b8edfc25856
e73a69cb98dc
e73a69cb98dc
828639811cdc
5f481e4e888b
5f481e4e888b
e73a69cb98dc
008d9c6f7c92
5f481e4e888b
a9a1560dad79
8af52e1224ff
e73a69cb98dc
5f481e4e888b
e73a69cb98dc
5f481e4e888b
5f481e4e888b
5f481e4e888b
e73a69cb98dc
5f481e4e888b
e73a69cb98dc
e73a69cb98dc
5f481e4e888b
053983a464e4
5f481e4e888b
69df04ee1e2b
69df04ee1e2b
5f481e4e888b
69df04ee1e2b
69df04ee1e2b
69df04ee1e2b
69df04ee1e2b
69df04ee1e2b
5f481e4e888b
5f481e4e888b
e73a69cb98dc
e73a69cb98dc
8b8edfc25856
61a6a7bf2cbd
a649599ad8b7
a649599ad8b7
a649599ad8b7
a649599ad8b7
8b8edfc25856
8b8edfc25856
a60cd29ba7e2
e73a69cb98dc
a60cd29ba7e2
8af52e1224ff
8af52e1224ff
8af52e1224ff
8af52e1224ff
e73a69cb98dc
e73a69cb98dc
8af52e1224ff
8af52e1224ff
8af52e1224ff
8af52e1224ff
8af52e1224ff
e73a69cb98dc
8af52e1224ff
a60cd29ba7e2
e73a69cb98dc
8af52e1224ff
8af52e1224ff
8af52e1224ff
8af52e1224ff
8b8edfc25856
e73a69cb98dc
61a6a7bf2cbd
a60cd29ba7e2
e73a69cb98dc
8b8edfc25856
8b8edfc25856
e73a69cb98dc
a60cd29ba7e2
e73a69cb98dc
8b8edfc25856
61a6a7bf2cbd
a60cd29ba7e2
e73a69cb98dc
8b8edfc25856
e73a69cb98dc
61a6a7bf2cbd
a60cd29ba7e2
8bbe9ab76371
8bbe9ab76371
8bbe9ab76371
61a6a7bf2cbd
e73a69cb98dc
61a6a7bf2cbd
61a6a7bf2cbd
61a6a7bf2cbd
e73a69cb98dc
8b8edfc25856
8b8edfc25856
e73a69cb98dc
61a6a7bf2cbd
8b8edfc25856
e73a69cb98dc
8b8edfc25856
61a6a7bf2cbd
8bbe9ab76371
e73a69cb98dc
8af52e1224ff
8bbe9ab76371
8bbe9ab76371
8b8edfc25856
8bbe9ab76371
8bbe9ab76371
8af52e1224ff
8bbe9ab76371
8b8edfc25856
8af52e1224ff
8af52e1224ff
8bbe9ab76371
a60cd29ba7e2
a60cd29ba7e2
8bbe9ab76371
8bbe9ab76371
8bbe9ab76371
5f481e4e888b
8b8edfc25856
a60cd29ba7e2
a60cd29ba7e2
a60cd29ba7e2
008d9c6f7c92
.. _installation:

==========================
Installation on Unix/Linux
==========================

``Kallithea`` is written entirely in Python. Before posting any issues make
sure, your not missing any system libraries and using right version of
libraries required by Kallithea. There's also restriction in terms of mercurial
clients. Minimal version of hg client known working fine with Kallithea is
**1.6**. If you're using older client, please upgrade.


Installing Kallithea from PyPI (aka "Cheeseshop")
-------------------------------------------------

Kallithea requires python version 2.6 or higher.

The easiest way to install ``kallithea`` is to run::

    easy_install kallithea

Or::

    pip install kallithea

If you prefer to install Kallithea manually simply grab latest release from
http://pypi.python.org/pypi/Kallithea, decompress the archive and run::

    python setup.py install

Step by step installation example for Windows
---------------------------------------------

:ref:`installation_win`


Step by step installation example for Linux
-------------------------------------------


For installing Kallithea i highly recommend using separate virtualenv_. This
way many required by Kallithea libraries will remain sandboxed from your main
python and making things less problematic when doing system python updates.

Alternative very detailed installation instructions for Ubuntu Server with
celery, indexer and daemon scripts: https://gist.github.com/4546398


- Assuming you have installed virtualenv_ create a new virtual environment
  using virtualenv command::

    virtualenv --no-site-packages /opt/kallithea-venv


.. note:: Using ``--no-site-packages`` when generating your
   virtualenv is **very important**. This flag provides the necessary
   isolation for running the set of packages required by
   Kallithea.  If you do not specify ``--no-site-packages``,
   it's possible that Kallithea will not install properly into
   the virtualenv, or, even if it does, may not run properly,
   depending on the packages you've already got installed into your
   Python's "main" site-packages dir.


- this will install new virtualenv_ into `/opt/kallithea-venv`.
- Activate the virtualenv_ by running::

    source /opt/kallithea-venv/bin/activate

.. note:: If you're using UNIX, *do not* use ``sudo`` to run the
   ``virtualenv`` script.  It's perfectly acceptable (and desirable)
   to create a virtualenv as a normal user.

- Make a folder for Kallithea data files, and configuration somewhere on the
  filesystem. For example::

    mkdir /opt/kallithea


- Go into the created directory run this command to install kallithea::

    easy_install kallithea

  or::

    pip install kallithea

- This will install Kallithea together with pylons and all other required
  python libraries into activated virtualenv

Requirements for Celery (optional)
----------------------------------

In order to gain maximum performance
there are some third-party you must install. When Kallithea is used
together with celery you have to install some kind of message broker,
recommended one is rabbitmq_ to make the async tasks work.

Of course Kallithea works in sync mode also and then you do not have to install
any third party applications. However, using Celery_ will give you a large
speed improvement when using many big repositories. If you plan to use
Kallithea for say 7 to 10 repositories, Kallithea will perform perfectly well
without celery running.

If you make the decision to run Kallithea with celery make sure you run
celeryd using paster and message broker together with the application.

.. note::
   Installing message broker and using celery is optional, Kallithea will
   work perfectly fine without them.


**Message Broker**

- preferred is `RabbitMq <http://www.rabbitmq.com/>`_
- A possible alternative is `Redis <http://code.google.com/p/redis/>`_

For installation instructions you can visit:
http://ask.github.com/celery/getting-started/index.html.
This is a very nice tutorial on how to start using celery_ with rabbitmq_


You can now proceed to :ref:`setup`
-----------------------------------



.. _virtualenv: http://pypi.python.org/pypi/virtualenv
.. _python: http://www.python.org/
.. _mercurial: http://mercurial.selenic.com/
.. _celery: http://celeryproject.org/
.. _rabbitmq: http://www.rabbitmq.com/