/buildout-openerp-postgres

Buildout for OpenERP 7.0 and PostgreSQL 9.3 with Supervisord

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Buildout for OpenERP with PostgreSQL

OpenERP 7.0, PostgreSQL 9.3.4 and Supervisord 3.0

Usage

$ cd virtualenv projects dir (cd $WORKON_HOME)
$ git clone https://github.com/kybi/buildout-openerp-postgres openerp
$ mkvirtualenv openerp
$ cdvirtualenv
$ mkdir eggs
$ python bootstrap.py
$ buildout
$ supervisord             # start supervisor deamon
$ supervisorctl status    # check if running postgres
$ psql -d postgres -c 'CREATE DATABASE ...'  # copy this line from shell after run buildout
$ start_openerp
$ http://localhost:8069
  login: admin
  pass:  admin

Settings

defaults in buildout.cfg

openerp_version = nightly 7.0 latest
openerp_xmlrpc_port = 8069
openerp_xmlrpcs_port = 8071

postgres_version = 9.3.0
postgres_host = 127.0.0.1
postgres_db_name = openerp
postgres_port = 5434
postgres_maxconn = 100

supervisor_port = 9002
supervisor_url = http://127.0.0.1

Configure OpenERP

config file: etc/openerp.cfg, if you want to change more options in openerp.cfg, don't edit this file, please add section [openerp] to buildout.cfg and set options.'add_option' = value, where 'add_option' is from openerp.cfg and run buildout again.

Example: change logging level for OpenERP

'buildout.cfg'
...
[openerp]
options.log_handler = [':ERROR']
...

if you want to run more then one instance of OpenERP, or another user is running same buildout on the same machine, please change ports:

openerp_xmlrpc_port = 8069  (8069 default openerp)
openerp_xmlrpcs_port = 8071 (8071 default openerp)
supervisor_port = 9002      (9001 default supervisord)
postgres_port = 5434        (5432 default postgres)

TODO

  • move Usage to Fabric, more http://fabfile.org/
  • generate Apache and Nginx config for virualhost with Buildout

Contributors

Creators

Rastislav Kober, http://www.kybi.sk