cbgaindia / ckanext-openbudgetsin_theme

Custom CKAN theme extension for Open Budgets India
https://openbudgetsindia.org/
MIT License
4 stars 0 forks source link
ckan ckanext open-budgets open-data

Installation Instructions for CKAN version 2.6

Step 1 - Install the required packages

sudo apt-get install python-dev postgresql libpq-dev python-pip python-virtualenv git-core openjdk-8-jdk

Step 2 - Install CKAN into a Python virtual environment

If you’re installing CKAN for development and want it to be installed in your home directory, you can symlink the directories used in this documentation to your home directory. This way, you can copy-paste the example commands from this documentation without having to modify them, and still have CKAN installed in your home directory:

mkdir -p ~/ckan/lib
sudo ln -s ~/ckan/lib /usr/lib/ckan
mkdir -p ~/ckan/etc
sudo ln -s ~/ckan/etc /etc/ckan

1) sqlalchemy.url This should refer to the database we created in 3. Setup a PostgreSQL database above:

sqlalchemy.url = postgresql://ckan_default:pass@localhost/ckan_default 

2) site_url Provide the site’s URL (used when putting links to the site into the FileStore, notification emails etc). For example:

ckan.site_url = http://127.0.0.1:5000

Do not add a trailing slash to the URL.

Step 5 - Setup Solr

Follow this link -> https://github.com/ckan/ckan/wiki/Install-and-use-Solr-6.5-with-CKAN

Step 6 - Create database tables

cd /usr/lib/ckan/default/src/ckan
paster db init -c /etc/ckan/default/development.ini

You should see Initialising DB: SUCCESS.

Step 7 - Link to who.ini

who.ini (the Repoze.who configuration file) needs to be accessible in the same directory as your CKAN config file, so create a symlink to it:

ln -s /usr/lib/ckan/default/src/ckan/who.ini /etc/ckan/default/who.ini

Step 8 - You’re done!

cd /usr/lib/ckan/default/src/ckan
paster serve /etc/ckan/default/development.ini

Open http://127.0.0.1:5000/ in a web browser, and you should see the CKAN front page.

Installation Intructions for Plugins

Follow the link -> https://docs.google.com/document/d/1yoR-caP80XLvXyTaaVVEK0u1jGEhTfoxzhW3ZrZt6ho/edit?usp=sharing