[ADD] doc production: updating module list and configuration in docker

This commit is contained in:
Mathieu Benoit 2022-01-25 22:29:13 -05:00
parent 0505fa7668
commit 34535a2b7a

View file

@ -155,3 +155,33 @@ Check log with
```bash
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
```
Note, the goal is to call `env['ir.module.module'].update_list()`.
Restart the docker :
```bash
docker-compose down
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
```