Source

ckan-i18n / UPGRADE.txt

# This document describes manually upgrading a deployed CKAN instance.
# NB: It should not be necessary to do it manually without good reason. The
# fabric script should be used in preference to these instructions - see
# fabfile.py

# activate relevant virtualenv
. pyenv/bin/activate

# update pip-requirements.txt (or pip-requirements-metastable.txt / pip-requirements-stable.txt)
wget http://knowledgeforge.net/ckan/hg/raw-file/default/pip-requirements.txt

# EITHER update all modules
pip -E pyenv install -r pip-requirements.txt

# OR just update ckan
cd pyenv/src/ckan
hg pull [-r yourrev]
# may want to check log messages first
# hg log -l 5
hg up
# only update to specific revision
# hg up -r {rev}
cd ../../../

# bring db up to date
paster --plugin ckan db upgrade --config {config.ini}

# NB: if you have updates to licenses you need to to
# paster --plugin ckan db init --config {config.ini}

# Restart apache (so modpython has latest code)
sudo /etc/init.d/apache2 restart

# Run smoketests in ckanext/blackbox
# (install ckanext and run ckanext from another machine
#  - see ckanext README.txt for instructions)
python blackbox/smoke.py blackbox/ckan.net.profile.json