[UPD] doc: poetry tips
This commit is contained in:
parent
a6e25f5234
commit
821e06ac5c
2 changed files with 30 additions and 1 deletions
|
|
@ -61,7 +61,8 @@ Execute to generate Repo manifest
|
||||||
|
|
||||||
## Move database from prod to dev
|
## Move database from prod to dev
|
||||||
|
|
||||||
Copy the database image into `./image_db/prod_client.zip` and run `make db_restore_prod_client`. This will create a database
|
Copy the database image into `./image_db/prod_client.zip` and run `make db_restore_prod_client`. This will create a
|
||||||
|
database
|
||||||
named `prod_client` ready to test.
|
named `prod_client` ready to test.
|
||||||
|
|
||||||
When moving database from prod to your dev environment, you want to remove email servers, backups and install user test
|
When moving database from prod to your dev environment, you want to remove email servers, backups and install user test
|
||||||
|
|
@ -220,6 +221,24 @@ Update poetry, `./script/poetry/poetry_update.py`.
|
||||||
|
|
||||||
Create docker, `make docker_build`.
|
Create docker, `make docker_build`.
|
||||||
|
|
||||||
|
### Python version major change
|
||||||
|
|
||||||
|
When you need to change python 3.7.17 to 3.8.10, do :
|
||||||
|
|
||||||
|
```bash
|
||||||
|
rm -r .venv
|
||||||
|
make install_dev
|
||||||
|
./.venv/bin/poetry lock --no-update
|
||||||
|
```
|
||||||
|
|
||||||
|
And update file script/install/install_locally.sh
|
||||||
|
|
||||||
|
`ln -fs ${EL_HOME_ODOO}/odoo ${EL_HOME}/.venv/lib/python3.7/site-packages/`
|
||||||
|
|
||||||
|
to
|
||||||
|
|
||||||
|
`ln -fs ${EL_HOME_ODOO}/odoo ${EL_HOME}/.venv/lib/python3.8/site-packages/`
|
||||||
|
|
||||||
# Pull request
|
# Pull request
|
||||||
|
|
||||||
## Show all pull requests from organization
|
## Show all pull requests from organization
|
||||||
|
|
|
||||||
|
|
@ -34,3 +34,13 @@ Change version in file `./script/install/install_locally.sh` into constant `POET
|
||||||
Erase directory `~/.poetry` and `./get-poetry.py`.
|
Erase directory `~/.poetry` and `./get-poetry.py`.
|
||||||
|
|
||||||
Run installation script for OS, check `./script/install/install_locally.sh`.
|
Run installation script for OS, check `./script/install/install_locally.sh`.
|
||||||
|
|
||||||
|
# FAQ
|
||||||
|
|
||||||
|
## Got error "file could not be opened successfully"
|
||||||
|
|
||||||
|
Delete cache at root of the project
|
||||||
|
|
||||||
|
```bash
|
||||||
|
rm -r cache
|
||||||
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue