Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
3 Відповіді
3880 Переглядів

I'm running CentOS 7 on my development sandbox machine.  I currently have Odoo 8 installed.  Can I also install v7 for testing/development between the two?  How would I go about this?

Аватар
Відмінити
Найкраща відповідь

Sure ,
Create separate config files ( xmlrpc_port = 8069 - change port for each version )
optional create separate startup scripts in /etc/init.d/ for each version

You can have more than one instance running, but each needs to be on separate port (specify in config)
You can start several instances of same version from one source folder;
Or can run several versions (6.1, 7,8,trunk) on same server from separate source folders
If you use different veriosn it is recomended to create separate db users/roles for each version so db's dont get mixed
(also vise to use roles/users if using same version multi instance)


Hope it helps

Аватар
Відмінити
Автор

I installed v7 along with the v8 I already had in place. I renamed the 'openerp-server' executable in /usr/bin to 'odoo8-server', and copied the 'openerp-server' from the v7 directory to /usr/bin as 'openerp7-server' to save on confusion. I thought this would allow me to start either version at will (don't need to run both at the same time). However, running 'openerp7-server' still launches v8! I think this is because the 'import openerp' line in the executable is finding the v8 version of the class/module first. Is it possible to specify a path to the exact version of the module/class inside the v7 executable script? It didn't work when I tried it, but I know very little Python.

Автор

I did a hackaround by running the 'openerp-server' out of the directory created by untarring the latest .tar.gz file and specifying a config file. I also had to make separate v7 and v8 custom module directories, as the v7 server will get confused by v8 modules that reside in the specified addons directory. So, separate .conf files for each server, and in each respective file, specify the correct custom module directory path!

Найкраща відповідь

You could always run one in a Docker container? 
https://docs.docker.com/installation/centos/
https://registry.hub.docker.com/search?q=openerp&searchfield=

That may actually be the cleanest way to do this 

Аватар
Відмінити
Найкраща відповідь

Yes you could. I do this kind of practice: one source and switch between version, sometime I run two version simultaneously. Why? because installing odoo for development is tedious.

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
квіт. 15
7902
2
бер. 15
6893
2
бер. 15
16768
1
бер. 15
3007
1
бер. 15
3419