Farm Deployment
From CKAN
Setting up a CKAN farm for hosting multiple instances of CKAN off a single codebase.
Setup
- install from apt repository as detailed in manual
- copy /usr/bin/ckan-std-install to temp location, modify $INSTANCE and run
- set up a virtualenv (install python-virtualenv) in /etc/ckan/common with pip list at /etc/ckan/pip-common.txt
-e git+https://github.com/okfn/ckanext-disqus#egg=ckanext-disqus -e git+https://github.com/okfn/ckanext-follower#egg=ckanext-follower -e git+https://github.com/okfn/ckanext-googleanalytics#egg=ckanext-googleanalytics -e git+https://github.com/okfn/ckanext-stats#egg=ckanext-stats -e git+https://github.com/okfn/ckanext-wordpresser#egg=ckanext-wordpresser -e git+https://github.com/okfn/ckanext-solr#egg=ckanext-solr -e git+https://github.com/okfn/ckanext-spatial#egg=ckanext-spatial
- follow the instructions on Solr Search
- add virtualenv to wsgi script::
env_dir = '/etc/ckan/common/bin' activate_this = os.path.join(env_dir, 'activate_this.py') execfile(activate_this, dict(__file__=activate_this))
- run paster db init
- run ckanext-spatial extension db setup
- create default user, name admin, password password via WUI
- lock down the instance as per http://docs.ckan.org/en/latest/authorization.html#publisher-mode (see also Workflows)
- remove create-user from reader on system
- enable plugins as needed (and install more from Extensions)
Todo
- make about page customizable
- extras on package page
- css and similar config