My favorites | Sign in
Logo
                
Search
for
Updated Nov 20, 2009 by cedkr...@gmail.com
Labels: Phase-Deploy, Featured
InstallationMercurial  
Installation from DSCM Mercurial

Introduction

This page describes the installation process of Tryton from scratch.

Mercurial is the distributed source control management system (DSCM) used by the Tryton project. The repository layout for the Tryton project is divided into

  • one repository for the client (tryton)
  • one repository for the server (trytond)
  • repositories for the modules, one for each module, prefixed by module/
  • the above structure copied for each release, prefixed by the release version
  • several other project related repositories

You need to install Mercurial before you can follow this instructions.

Installation

The installation of Tryton is divided in four parts, following the three-tier architecture of Tryton

  1. Installation of Requirements
  2. Client installation
  3. Server and modules installation
  4. Database installation
All of the three parts of Tryton can reside on different machines. The different tiers of Tryton are connected via a TCP/IP network.

In a development or testing installation we strongly advise you to use a "Mercurial Forest" for easy maintainance on updating and testing (see section below: Updating Client, Server and Modules Repositories in one go ).

Automatic Way

  • Dowload tryton-dev.py (or tryton-dev.sh)
  • Usage: python ./tryton-dev.py (or sh ./tryton-dev.sh) will download hgforest, tryton, trytond and all available modules of the trunk version to the current directory.
    • -d allows to choose the destination directory.
    • -u for updating an existing copy.
    • -b allows to choose another branch (e.g. -b 1.0).
    • -m allows to download only the modules. (They are placed in trytond/trytond/modules/.)

You must still install the dependencies of the client and the server, and the database

Client Installation

This section describes the installation process for tryton (the client application)

Server and Modules Installation

This section describes the installation process for the trytond server application and the modules.

Updating Client, Server and Modules Repositories in one go (using hgforest)

The Mercurial DSCM has an extension which makes it possible to maintain easily a bundle of repositories in a so called forest. With the installation of the Mercurial forest extension you are able to update all repositories with a single hg fpull and hg fupdate.

  1. Clone the Mercurial forest extension to /usr/local/src/hgforest
  2. cd /usr/local/src/
    sudo hg clone http://hg.akoha.org/hgforest/
  3. Go to your directory containing the mercurial repositories for the Tryton forest (e.g. ~/workspace/tryton-dist) and initialize the forest
  4. cd ~/workspace/tryton-dist
    hg init
  5. Append/create the .hg/hgrc file for the hgforest extension
  6. echo -e "[extensions]\nforest=/usr/local/src/hgforest/forest.py" >> .hg/hgrc
  7. Now it's quite easy to update all the modules in one go
  8. cd ~/workspace/tryton-dist
    hg fpull
    hg fupdate

Hint for users working behind a proxy:

Currently neither the tryton client nor the forest extension are able to connect via a http proxy. Instead they can be socksified and thus connect via socks server, i.e.

tsocks hg fpull

Installing Tryton on your favourite distribution

We strongly suggest you to use the installation packages provided by your distribution. For installation hints for your preferred distribution please refer to the additional pages below

Database installation

trytond uses PostgreSQL as database engine.

The PostgreSQL database may be installed on the same machine as the trytond server application, but it can be on any machine connected via TCP/IP network.

Please refer to the appropriate documentation for installing PostgreSQL on your operating system or distribution.


Sign in to add a comment
Hosted by Google Code