2010-02-16 10:22:34 +00:00
|
|
|
To setup a local instance of pandora:
|
2009-12-31 15:04:32 +00:00
|
|
|
|
2010-02-16 10:22:34 +00:00
|
|
|
bzr branch http://code.0xdb.org/pandora pandora
|
|
|
|
cd pandora
|
2009-12-31 15:04:32 +00:00
|
|
|
virtualenv .
|
|
|
|
pip -E . install -r requirements.txt
|
|
|
|
|
|
|
|
|
|
|
|
you need python, bazaar, pip and virtualenv:
|
|
|
|
|
|
|
|
apt-get install python-setuptools bzr
|
2010-01-16 20:49:44 +00:00
|
|
|
easy_install pip
|
2009-12-31 15:04:32 +00:00
|
|
|
pip install virtualenv
|
|
|
|
|
|
|
|
also it uses system python moduels, so make sure you have
|
|
|
|
ipython, dbmodule(psycopg2, python-mysqldb,..)
|
|
|
|
installed via apt-get/pip/easy_install in your system path.
|
|
|
|
|
|
|
|
Install rabbitmq and carrot:
|
|
|
|
sudo apt-get install rabbitmq-server
|
|
|
|
|
2010-02-16 10:22:34 +00:00
|
|
|
sudo rabbitmqctl add_user pandora password
|
|
|
|
sudo rabbitmqctl add_vhost /pandora
|
|
|
|
sudo rabbitmqctl set_permissions -p /pandora pandora "^pandora-.*" ".*" ".*"
|
2009-12-31 15:04:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
update BROKER_* settings in local_settings.py:
|
|
|
|
|
|
|
|
Development:
|
|
|
|
we are using django, http://docs.djangoproject.com/en/dev/
|
|
|
|
communication between webserver and background tasks is done via rabbitmq
|
|
|
|
http://github.com/ask/carrot/ for more info on the lib used to communicate
|