odoo12 from scratch: First, install odoo Runtime Environment (windows10)

Foreword

      Given a lot of friends say there is no mac computer, windows development should not be bad in fact far, just a personal habit, and it, in fact, with windows computer environment is also very fast in fact, I am here again slightly make up a relatively simple windows environment deployment , I hope to have some help friends.

Installation odoo12 development environment on windows10

We are going to install the package:

1), git: code management

2), postgres: odoo12 needed to run the database

3), docker: postgres used to construct a container, pgadmin4 container

4), python3.7.4: odoo12 running python environment

5), odoo requirements: the need to run odoo python dependencies

Item code:

We come directly on the basis of Chapter III of the deployment of it:

git clone -b v3.1 https://github.com/lingjiawen/odoo_project.git

1, the installation docker

Note: windows10 Home Edition can not be installed docker, if you are windows10 Home Edition, skip docker installation, and installation postgres10 pgadmin directly on the machine specific installation method also your own search.

1) Open the Control Panel - Programs and Features - Enable or disable Windows features, hook on Hyper-V, click OK, and wait for installation.

2) to the official website to download and install docker: https://hub.docker.com/editions/community/docker-ce-desktop-windows

2, install git

Note: If you are using non-genuine windows system, git installation "uable to set system config ......" The problem will arise, you need to disable the driver signature mandatory , and each restart is required to disable, or git bash will flash back

: Click the bottom left corner windows button -> Settings -> Update and Security -> Recovery -> click Restart Now, and then wait, wait for reboot page appears click on difficult problems -> Advanced Options -> Restart -> Restart, and then wait for the page again, use the keyboard to select 7 to restart seventh

Then download and install git: https://gitforwindows.org/

3, install Visual Studio Build Tools

Download and install: http: //go.microsoft.com/fwlink/ LinkId = 691126?

4, installation python3.7.4

Download and install: https: //www.python.org/ftp/python/3.7.4/python-3.7.4-amd64.exe

5, the use of docker installation postgres database and pgadmin4

docker pull postgres:10
docker pull dpage/pgadmin4

6, pulling odoo code directory into odoo_project

git clone -b 12.0 https://github.com/odoo/odoo.git

After pulling is completed, the folder renamed odoo12, put odoo_project

7, the installation-dependent odoo

pip install Pillow psycopy2 psutil

Use git bash into the odoo_project / odoo12 directory, install additional dependencies:

code path cd / odoo_project / odoo12 
Vim requirements.txt 

annotation file at Pillow 
# Pillow == 4.0 . 0 

WQ save and exit 

PIP the install -R & lt requirements.txt # mounted reliance

8, run postgres database

Enter odoo_project directory, run docker-compose_db.yaml:

code path cd / odoo_project 
Docker Create volume --name = postgres_10_db_volume first run # Create volume container 
Docker -compose -d -f Docker-up compose_db.yaml

Run pgadmin4:

# Run pgadmin, please set up their own account password 
Docker RUN -p 8888 : 80 \
     -e "PGADMIN_DEFAULT_EMAIL of the sysadmin = " \ 
    -e "PGADMIN_DEFAULT_PASSWORD of the sysadmin = " \ 
    -d dpage / pgadmin4

9, run odoo

Self-installation pycharm, open pycharm, configured with the mac version of the same, as shown:

 

Click ok, then modify config / odoo.conf in addons_path (windows and mac path paths are different, the following relative path mac can also be used)

= odoo12 addons_path / odoo / addons, odoo12 / addons, my_addons 
DB_HOST = localhost # Windows can not connect the database using 0.0.0.0

Click Run to see the effect:

 

Guess you like

Origin www.cnblogs.com/ljwTiey/p/11495770.html