euscan-ng/euscanwww
Corentin Chary 8062fddc23 euscanwww: move processing to scan and misc, enhance update_portage_tree
update_portage_tree() now:
- watch stderr and stdout for each command
- use layman command instead of layman API for sync because
  layman API doesn't work when stdout or stderr is not a real file
  (we could probably work around that with pipes and epoll)
- use egencache instead of emerge to generate cache
- export PORTAGE_CONFIGROOT, ROOT, EIX_CACHEFILE etc.. so they
  are used everywhere

Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
2012-07-02 18:16:59 +02:00
..
djeuscan euscanwww: move processing to scan and misc, enhance update_portage_tree 2012-07-02 18:16:59 +02:00
euscanwww euscanwww: move processing to scan and misc, enhance update_portage_tree 2012-07-02 18:16:59 +02:00
htdocs euscanwww: Fixed CSS stylesheet 2012-06-29 14:22:01 +02:00
scripts euscanwww: move start_dev_services.sh to scripts 2012-07-02 08:09:06 +02:00
var euscanwww: euscan -> djeuscan 2012-04-04 17:31:54 +02:00
__init__.py euscanwww: initial structure 2011-04-12 16:09:17 +02:00
.gitignore add db journal to gitignore 2012-05-07 13:44:11 +02:00
INSTALL euscanwww: euscan -> djeuscan 2012-04-04 17:31:54 +02:00
manage.py Lovely day for PEP8 and pylint! 2012-04-28 18:16:05 +02:00
README.Celery euscanwww: Added README for celery 2012-06-26 17:17:35 +02:00
runtests.py minor fix in runtests 2012-05-13 14:10:57 +02:00

Requirements
============

Installing requirements with setup.py is the easiest way, just run::

    python setup.py develop

or::

    python setup.py install  # to install euscan and requirements

If you prefer to use portage just install dev-python/django-celery-2.5.5

There's the need of having a broker for tasks. The default and reccommended
broker is RabbitMQ.
Install with::
emerge rabbitmq-server


Running Celery
==============

You'll need:
* celeryd (celery daemon for running tasks)::

    python manage.py celeryd -E -l INFO

* celerycam (for monitoring celery and see the results in the django admin page)::

    python manage.py celerycam

* celerybeat (for running periodic tasks)::

    python manage.py celerybeat -l INFO


TODO
====

Provide a supervisord configuration