$> diogo --notes-and-thoughts

Deploying Odoo With Virtualenv

Sun, 01 Feb 2015

Using virtualenv for you Odoo deployments and have startup-script running. With the base startup script as starting point do:

### END INIT INFO

PATH=/bin:/sbin:/usr/bin
VIRTENV=/opt/odoo/venv/bin/python
DAEMON=/opt/odoo/odoo/openerp-server
NAME=odoo-server
DESC=oodo-server

# Specify the user name (Default: openerp).
USER=openerp
.
. (in the start session replace start-stop-daemon command by)
.
            start-stop-daemon --start --quiet --pidfile ${PIDFILE} \
                    --chuid ${USER} --background --make-pidfile \
                    --startas /bin/bash -- -c "${VIRTENV} ${DAEMON} ${DAEMON_OPTS}"

This entry was tagged as odoo deployment virtualenv