[UPD] format doc
This commit is contained in:
parent
58727c4838
commit
da81b00d3a
4 changed files with 18 additions and 7 deletions
|
|
@ -172,7 +172,8 @@ Or go back to normal
|
|||
|
||||
## Clean database PostgreSQL
|
||||
|
||||
Sometime, it's not possible to delete a database from the database manager `http://127.0.0.1:8069/web/database/manager`, so you can do it manually. Replace `database_name` by your database name:
|
||||
Sometime, it's not possible to delete a database from the database manager `http://127.0.0.1:8069/web/database/manager`,
|
||||
so you can do it manually. Replace `database_name` by your database name:
|
||||
|
||||
```bash
|
||||
sudo -iu postgres
|
||||
|
|
@ -210,7 +211,8 @@ Read GIT_REPO.md to understand how changer version.
|
|||
|
||||
## Python version
|
||||
|
||||
Your actual version is in file .python-version. Use script `./script/version/change_python_version.sh 3.7.12` to change to version 3.7.12 .
|
||||
Your actual version is in file .python-version. Use script `./script/version/change_python_version.sh 3.7.12` to change
|
||||
to version 3.7.12 .
|
||||
|
||||
Run the installation, `make install_dev`.
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,8 @@ Guide to help migration with different version.
|
|||
|
||||
### Database migration, PostgreSQL update 11 to 12
|
||||
|
||||
TODO not working automatically, check last procedure and do it manually. The command to the docker is missing support when database is external.
|
||||
TODO not working automatically, check last procedure and do it manually. The command to the docker is missing support
|
||||
when database is external.
|
||||
|
||||
Easy way, do a backup with ERPLibre, upgrade Postgresql, restore the same backup.
|
||||
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@ cd ERPLibre
|
|||
|
||||
### 2. Modify the parameters
|
||||
|
||||
Modify the file env_var.sh for production installation. Enable nginx if you need a proxy with `EL_INSTALL_NGINX` at True.
|
||||
Redirect your DNS to the proxy's ip and add your A and AAAA into `WL_WEBSITE_NAME` with space between.
|
||||
Modify the file env_var.sh for production installation. Enable nginx if you need a proxy with `EL_INSTALL_NGINX` at
|
||||
True. Redirect your DNS to the proxy's ip and add your A and AAAA into `WL_WEBSITE_NAME` with space between.
|
||||
|
||||
### 3. Execute the scripts:
|
||||
|
||||
|
|
@ -157,16 +157,19 @@ sudo journalctl -feu cron
|
|||
```
|
||||
|
||||
# Docker
|
||||
|
||||
## Update
|
||||
|
||||
When update a docker, you need to update the list of module.
|
||||
|
||||
Run script to update configuration :
|
||||
|
||||
```bash
|
||||
./script/docker/docker_gen_config.sh
|
||||
```
|
||||
|
||||
Edit the docker-compose.yml and update the command line (change DATABASE) to :
|
||||
|
||||
```yaml
|
||||
command: odoo --workers 2 -u erplibre_info -d DATABASE
|
||||
```
|
||||
|
|
@ -174,6 +177,7 @@ Edit the docker-compose.yml and update the command line (change DATABASE) to :
|
|||
Note, the goal is to call `env['ir.module.module'].update_list()`.
|
||||
|
||||
Restart the docker :
|
||||
|
||||
```bash
|
||||
docker-compose down
|
||||
docker-compose up -d
|
||||
|
|
@ -182,6 +186,7 @@ docker-compose up -d
|
|||
Revert the command in docker-compose.yml.
|
||||
|
||||
You can validate in log the update, you need to find `odoo.modules.loading: updating modules list`, check
|
||||
|
||||
```bash
|
||||
docker-compose logs -f
|
||||
```
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@ make docker_build
|
|||
### Rename old version to new version
|
||||
|
||||
Search old version, like :
|
||||
|
||||
```bash
|
||||
grep --color=always --exclude-dir={.repo,.venv,.git} --exclude="*.svg" -nri v1.2.0
|
||||
```
|
||||
|
|
@ -94,7 +95,8 @@ Generate production manifest and freeze all repos versions.
|
|||
./.venv/repo manifest -r -o ./default.xml
|
||||
```
|
||||
|
||||
Update ERPLIBRE_VERSION variable in [env_var.sh](../env_var.sh), [Dockerfile.prod](../docker/Dockerfile.prod.pkg) and [docker-compose](../docker-compose.yml).
|
||||
Update ERPLIBRE_VERSION variable in [env_var.sh](../env_var.sh), [Dockerfile.prod](../docker/Dockerfile.prod.pkg)
|
||||
and [docker-compose](../docker-compose.yml).
|
||||
|
||||
Generate [poetry](./POETRY.md) and keep only missing dependencies, remove updates.
|
||||
|
||||
|
|
@ -190,7 +192,8 @@ You need to push your docker image and update your tag, like 1.0.1:
|
|||
|
||||
## Do a release on github
|
||||
|
||||
Visit `https://github.com/ERPLibre/ERPLibre/releases/new` and create a release named `v#.#.#` and copy information from CHANGELOG.md.
|
||||
Visit `https://github.com/ERPLibre/ERPLibre/releases/new` and create a release named `v#.#.#` and copy information from
|
||||
CHANGELOG.md.
|
||||
|
||||
# TIPS
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue