콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3 답글
4411 화면

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.

아바타
취소
관련 게시물 답글 화면 활동
1
4월 15
8526
2
3월 15
7518
2
3월 15
17571
1
3월 15
3403
1
3월 15
3911