How to start the server¶
You can start the default web server bundled in Tryton with this command line:
trytond -c <config file>
The server will wait for client connections on the interface defined in the
web section of the configuration.
When using multiple config files the order is importart as last entered files will override the items of first files
If you prefer to run Tryton inside your own WSGI server instead of the simple
server of Werkzeug, you can use the application
Following environment variables can be set:
TRYTOND_CONFIG: Point to configuration file.
TRYTOND_LOGGING_CONFIG: Point to logging file.
TRYTOND_LOGGING_LEVEL: An integer to set the default logging level (default:
TRYTOND_COROUTINE: Use coroutine for concurrency.
TRYTOND_DATABASE_NAMES: A list of database names in CSV format, using python default dialect.
You must manage to serve the static files from the web root.
If you want to run some scheduled actions, you must also run the cron server with this command line:
trytond-cron -c <config file> -d <database>
The server will wake up every minutes and preform the scheduled actions defined
You can also launch the command every few minutes from a scheduler with the
trytond-worker -c <config file> -d <database>
The manager will dispatch tasks from the queue to a pool of worker processes.
You will find more options for those services by using