Hi,
Sorry for the delay, we were looking into it. These are the steps that you need to follow:
# Stop services
$sudo /opt/bitnami/ctlscript.sh stop apache
# Create a backup and remove folders
$ sudo mkdir -p /opt/bitnami/backups/apps
$ sudo cp -r /opt/bitnami/apps/pootle /opt/bitnami/backups/apps
$ sudo rm -rf /opt/bitnami/apps/pootle/bin /opt/bitnami/apps/pootle/lib
$ sudo which git
# If git is not installed in the system
$ sudo apt-get install git
# Download and install Pootle
$ wget "downloads.sourceforge.net/project/translate/Pootle/2.5.0/Pootle-2.5.0.tar.bz2?r=&ts=1376661611&use_mirror=heanet"
$ mv Pootle-2.5.0.tar.bz2\?r\=\&ts\=1376661611\&use_mirror\=heanet Pootle-2.5.0.tar.bz2
$ bunzip2 Pootle-2.5.0.tar.bz2
$ tar xvf Pootle-2.5.0.tar
$ cd Pootle-2.5.0
$ sudo pip install -r ../Pootle-2.5.0/requirements/base.txt
$ sudo python setup.py install --single-version-externally-managed --prefix=pootle --install-lib=pootle/lib --install-scripts=pootle/bin --install-data=pootle --root=/opt/bitnami/apps
$ sudo chown -R daemon /opt/bitnami/apps/pootle/lib
Update files: pootle.wsgi, localsettings.py, pootle.conf
Edit /opt/bitnami/apps/pootle/etc/pootle/localsettings.py
. Comment out the line:
from pootle.install_dirs import *
Edit the po and db directory settings:
STATS_DB_PATH = working_path('/opt/bitnami/apps/pootle/var/lib/pootle/dbs/stats.db') # None means the default path
# The directory where the translation files are kept
PODIRECTORY = working_path('/opt/bitnami/apps/pootle/var/lib/pootle/po')
And add the line:
STATIC_URL = '/pootle/assets/'
The new version has a different layout and new configuration settings. You may want to check other settings check the configuration files in /opt/bitnami/apps/pootle/lib/pootle/settings
Edit /opt/bitnami/apps/pootle/scripts/pootle.wsgi
and add the lines:
sys.path.append('/opt/bitnami/apps/pootle/lib/pootle/apps')
os.environ['POOTLE_SETTINGS'] = '/opt/bitnami/apps/pootle/etc/pootle/localsettings.py'
Your pootle.wsgi
file should look like the below:
import os, sys
sys.path.append('/opt/bitnami/apps/pootle/lib')
sys.path.append('/opt/bitnami//apps/pootle/lib/pootle')
sys.path.append('/opt/bitnami//apps/pootle/lib/pootle/apps')
os.environ['DJANGO_SETTINGS_MODULE'] = 'pootle.settings'
os.environ['POOTLE_SETTINGS'] = '/opt/bitnami//apps/pootle/etc/pootle/localsettings.py'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
Edit /opt/bitnami/apps/pootle/conf/pootle.conf
and add the lines:
Alias /pootle/assets "/opt/bitnami/apps/pootle/lib/pootle/assets"
<Directory '/opt/bitnami/apps/pootle/lib/pootle/assets'>
Order allow,deny
Allow from all
</Directory>
Now you can restart the server. When you access the application the database will automatically upgraded to the new version.