From a617979338a67f8475cbc54f1b5364270ae5bde2 Mon Sep 17 00:00:00 2001 From: David Read Date: Wed, 28 Oct 2015 20:05:43 +0000 Subject: [PATCH] [#141] Add install instruction to activate the pyenv. Fixes #141. --- README.rst | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/README.rst b/README.rst index 3754d01..c0e5697 100644 --- a/README.rst +++ b/README.rst @@ -31,24 +31,27 @@ Installation ckan.harvest.mq.type = amqp +2. Activate your CKAN virtual environment, for example:: -2. Install the extension into your python environment:: + $ . /usr/lib/ckan/default/bin/activate + +3. Install the ckanext-harvest Python package into your virtual environment:: (pyenv) $ pip install -e git+https://github.com/ckan/ckanext-harvest.git#egg=ckanext-harvest -3. Install the rest of python modules required by the extension:: +4. Install the python modules required by the extension:: (pyenv) $ pip install -r pip-requirements.txt -4. Make sure the CKAN configuration ini file contains the harvest main plugin, as +5. Make sure the CKAN configuration ini file contains the harvest main plugin, as well as the harvester for CKAN instances if you need it (included with the extension):: - ckan.plugins = harvest ckan_harvester + ckan.plugins = harvest ckan_harvester -5. If you haven't done it yet on the previous step, define the backend that you are using with the ``ckan.harvest.mq.type`` - option (it defaults to ``rabbitmq``):: +6. If you haven't done it yet on the previous step, define the backend that you + are using with the ``ckan.harvest.mq.type`` option (it defaults to ``amqp``):: - ckan.harvest.mq.type = redis + ckan.harvest.mq.type = redis There are a number of configuration options available for the backends. These don't need to be modified at all if you are using the default Redis or RabbitMQ install (step 1). The list