Verbatim:Deployment: Difference between revisions
Jump to navigation
Jump to search
(partial update for Pootle 1.3 (work in progress)) |
|||
Line 3: | Line 3: | ||
== Pre-Deployment Checklist == | == Pre-Deployment Checklist == | ||
* Prerequisites | * Prerequisites | ||
** [http://translate.sourceforge.net/wiki/pootle/ | ** Python >= 2.4 | ||
** RPMs | ** ([http://translate.sourceforge.net/wiki/pootle/installation_1.3beta list of dependencies]) | ||
*** Some of these probably exist as RPMs, but they can also just be installed into the virtualenv | |||
*** python-lxml | *** python-lxml | ||
*** python-sqlite2 | *** python-sqlite2 | ||
*** python-ldap | *** python-ldap | ||
** At least gettext version 0.15. This seems to upgrade cleanly in Redhat with no dependency issues ([https://bugzilla.mozilla.org/show_bug.cgi?id=438706 bug 438706]) | ** At least gettext version 0.15. This seems to upgrade cleanly in Redhat with no dependency issues ([https://bugzilla.mozilla.org/show_bug.cgi?id=438706 bug 438706]) | ||
** At least SVN 1.5 (we make use of --with-revprop) | ** At least SVN 1.5 (we make use of --with-revprop) | ||
== Setup == | == Setup == | ||
As the apache user, pick a dir where you want to deploy Pootle (pootle_dir), then: | |||
* cd pootle_dir | |||
* virtualenv pootle_env | |||
* ... | |||
== Configuration == | |||
* [http://micropipes.com/blog/2008/09/19/committing-to-svn-securely-from-a-web-application/ more details on these steps] but a summary: | * [http://micropipes.com/blog/2008/09/19/committing-to-svn-securely-from-a-web-application/ more details on these steps] but a summary: | ||
# Create a Verbatim SSH account on the SVN server using an SSH key with no passphrase | # Create a Verbatim SSH account on the SVN server using an SSH key with no passphrase |
Revision as of 19:00, 3 November 2009
Verbatim » Deployment
Pre-Deployment Checklist
- Prerequisites
- Python >= 2.4
- (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
As the apache user, pick a dir where you want to deploy Pootle (pootle_dir), then:
- cd pootle_dir
- virtualenv pootle_env
- ...
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.