This subject is often coming back on the forum.
We need some advices
to correctly install trytond 4.2 on a debian server… (for production or testing)
Here are our first steps on a debian 9.0 :
- installing some packages : sudo apt install python virtualenv mercurial python-pip
- creating « tryton » user : sudo adduser tryton
Using user « tryton » :
- creating directory
where to install tryton :
mkdir /srv/tryton/4.2
- pip install
hgnested
and configuring .hgrc in /home/tryton :
[ui]
username = Tryton <try...@xxx.com>
[extensions]
hgnested =
- defining
virtualenv in /srv/tryton/4.2 :
virtualenv .venv/tryton
- switching into
virtualenv :
/srv/tryton/4.2/source .venv/tryton/bin/activate
- cloning in /srv/tryton/4.2 trytond 4.2 and all the modules with nclone :
hg nclone http://hg.tryton.org/4.2/trytond -b 4.2
- configuring trytond.cfg to use postgresql database :
[database]
uri = postgresql://tryton:tryton@postgresqlsrv:5432/
Questions ?
« pip install
. » or « python setup.py
install » ?
How to install all python dependencies for all the modules ?
- Is there a list with all the requirements to use with pip ?
- Should i execute trytond-admin –all and install dependencies one by one each time i get an error ?
- What about issue https://bugs.tryton.org/issue5960 ?
Waiting for your advices/suggestions... Then we could add this "how-to" to documentation..
Thanks !
>I guess it is similar for Debian, where you have system packages as well
- pip install hgnested
and configuring .hgrc in /home/tryton :
[ui]
username = Tryton <try...@xxx.com>
[extensions]
hgnested =
Hi,
This subject is often coming back on the forum.
We need some advices to correctly install trytond 4.2 on a debian server… (for production or testing)
Here are our first steps on a debian 9.0 :
Hi Maxime,I noticed that you are talking about the Debian distribution, so I thought I would point you to a great Debian package mirror for Tryton managed by Mathias Behrle.