Verbatim:Deployment: Difference between revisions
Jump to navigation
Jump to search
(→Setup) |
|||
| Line 17: | Line 17: | ||
As the apache user, pick a dir where you want to deploy Pootle (pootle_dir), then: | As the apache user, pick a dir where you want to deploy Pootle (pootle_dir), then: | ||
* <code>cd pootle_dir</code> | |||
* <code>virtualenv pootle_env</code> | * Create and activate a virtualenv | ||
* <code> | ** <code>cd pootle_dir</code> | ||
* <code>. | ** <code>virtualenv --no-site-packages pootle_env</code> | ||
** <code>. pootle_env/bin/activate</code> | |||
* Install all required packages using <code>pip</code> | |||
** <code>wget .../requirements.txt</code> (from github) | |||
** <code>pip -E pootle_env ...</code> | |||
* Download and extract Pootle itself (from the [http://translate.sourceforge.net/snapshots/Pootle-1.3.0-beta4/ 1.3.0-beta4 snapshot directory]) into pootle_env | |||
Set up Apache and mod_python to properly run Pootle | |||
* <code>wget .../modpython_wrapper.py</code> (from github); chmod +x it | * <code>wget .../modpython_wrapper.py</code> (from github); chmod +x it | ||
== Configuration == | == Configuration == | ||
Revision as of 14:55, 4 November 2009
Verbatim » Deployment
Pre-Deployment Checklist
- Prerequisites
- Python >= 2.4
- pip
- (list of dependencies)
- Some of these probably exist as RPMs, but they can also just be installed into the virtualenv
- python-lxml
- python-sqlite2
- python-ldap
- At least gettext version 0.15. This seems to upgrade cleanly in Redhat with no dependency issues (bug 438706)
- At least SVN 1.5 (we make use of --with-revprop)
Setup
I've added some scripts etc. to github.
As the apache user, pick a dir where you want to deploy Pootle (pootle_dir), then:
- Create and activate a virtualenv
cd pootle_dirvirtualenv --no-site-packages pootle_env. pootle_env/bin/activate
- Install all required packages using
pipwget .../requirements.txt(from github)pip -E pootle_env ...
- Download and extract Pootle itself (from the 1.3.0-beta4 snapshot directory) into pootle_env
Set up Apache and mod_python to properly run Pootle
wget .../modpython_wrapper.py(from github); chmod +x it
Configuration
- more details on these steps but a summary:
- Create a Verbatim SSH account on the SVN server using an SSH key with no passphrase
- Copy the key to a .ssh directory in the home directory of the verbatim user on the verbatim server
- Add commit hooks to the SVN server for translate:author
- checkout https://translate.svn.sourceforge.net/svnroot/translate/src/branches/mozootle
- Copy pootle.prefs to a configuration directory and configure it
- The command to run the server is ./PootleServer --prefsfile=/path/to/pootle.prefs --port=80
- note: the pootle tree must be owned by whatever user is running the pootle server
Post-deployment Checklist
todo: verification things are working, cron jobs, nagios checks, etc.