readme updates

This commit is contained in:
Yhael S
2023-08-25 04:01:43 -05:00
parent 088450bf97
commit 3b6ff350d9

View File

@@ -114,7 +114,7 @@ docker-compose up -d --build && docker-compose logs odoo
# Pro(d) Tips # Pro(d) Tips
The following tips will enhance your developing and production experience. The following tips will enhance your developing and production experience.
### Define the following aliases: ### 1. Define the following aliases:
``` ```
alias odoo='cd odoocker' alias odoo='cd odoocker'
@@ -125,12 +125,12 @@ alias deploy='docker-compose down && git pull && docker-compose up -d --build &&
alias logs='docker-compose logs -f --tail 2000 odoo' alias logs='docker-compose logs -f --tail 2000 odoo'
``` ```
### NEVER run docker-compose down **-v** in Production ### 2. NEVER run `docker-compose down -v` in Production
...without having a tested backed up database ...without having a tested backed up database
Have in mind that dropping volumes will destroy DB data, Odoo Conf & Filestore, *Let's Encrypt certificates, and more!*. If you execute this command several times in `prod` in a short period of time, you may reach the `Let's Encrypt` certificates limit and Odoocker won't be able to generate new ones after **several hours**. Have in mind that dropping volumes will destroy DB data, Odoo Conf & Filestore, *Let's Encrypt certificates, and more!*. If you execute this command several times in `prod` in a short period of time, you may reach the `Let's Encrypt` certificates limit and Odoocker won't be able to generate new ones after **several hours**.
### Colorize your branches ### 3. Colorize your branches
Add the following to `~/.bashrc` Add the following to `~/.bashrc`
``` ```
# Color git branches # Color git branches
@@ -148,7 +148,7 @@ fi
unset color_prompt force_color_prompt unset color_prompt force_color_prompt
``` ```
### Odoo Shell ### 4. Odoo Shell
1. Log into the odoo container 1. Log into the odoo container
``` ```
docker-compose exec odoo bash docker-compose exec odoo bash
@@ -158,7 +158,7 @@ docker-compose exec odoo bash
odoo shell --http-port=8071 odoo shell --http-port=8071
``` ```
### Odoo Scaffold ### 5. Odoo Scaffold
1. Log into the odoo container 1. Log into the odoo container
``` ```
docker-compose exec -u root odoo docker-compose exec -u root odoo