[ADD] doc production: updating module list and configuration in docker
This commit is contained in:
parent
0505fa7668
commit
34535a2b7a
1 changed files with 30 additions and 0 deletions
|
|
@ -155,3 +155,33 @@ Check log with
|
||||||
```bash
|
```bash
|
||||||
sudo journalctl -feu cron
|
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
|
||||||
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue