Thursday, March 20, 2014

COMMON COMMANDs FOR OpenERP IN LINUX

1. Start the server
Start the server normally
             $ python openerp-server
Start the server with a specific database
             $ python openerp-server --db-filter your_db

2. Shutdown the server
Find the server PID to kill
             $ ps ax | grep openerp-server
             $ kill -2 <pid>
Or just kill the "openerp-server" process without care about its pid
             $ kill -9 $(pgrep -f "openerp-server")

3. Upgrading server, modules
When OpenERP Python code and XML data files changed, we upgrade all modules or just module "base" (I think update "base" is enough, because almost inherit this module) by the following ways, we do this when start OpenERP server
             $ python openerp-server.py --update=all
OR
             $ python openerp-server.py --update=base, and_more_modules 

No comments:

Post a Comment