Hide database list with TRYTOND_DATABASE_NAMES

52 views
Skip to first unread message

Josias Pérez

unread,
Jan 28, 2018, 12:10:07 PM1/28/18
to tryton
Hi, I have the following config file for a uWSGI server. All works fine, but all the database are listed, is there a way to show only 1 database?

[uwsgi]
http-socket=0.0.0.0:8000
virtualenv = /opt/cr
module=trytond.application:app
env = TRYTOND_CONFIG=/opt/cr/tr.conf
env = TRYTOND_LOGGING_CONFIG=/opt/cr/log.conf
env = TRYTOND_DATABASE_NAMES=cr
check-static = /opt/cr/saocr
uid = www-data
gid = www-data

I was reading this docs[1] but I dont know if I'm doing something bad.

[1] http://doc.tryton.org/4.6/trytond/doc/topics/start_server.html#topics-start-server

Thanks in advance!

Dominique Chabord

unread,
Jan 28, 2018, 12:25:09 PM1/28/18
to tryton
Hi,
in production, good practice is to set only one database per service.
in other words, start one process per database with a dedicated postgresql role.

Josias Pérez

unread,
Jan 29, 2018, 3:30:06 AM1/29/18
to tryton
This works perfect for me! Thanks!
Reply all
Reply to author
Forward
0 new messages