From 3b6ff350d9c12a0ca31b486b0e99189bbb5a2147 Mon Sep 17 00:00:00 2001 From: Yhael S Date: Fri, 25 Aug 2023 04:01:43 -0500 Subject: [PATCH] readme updates --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ff3fdb5..1c7f4b7 100644 --- a/README.md +++ b/README.md @@ -114,7 +114,7 @@ docker-compose up -d --build && docker-compose logs odoo # Pro(d) Tips The following tips will enhance your developing and production experience. -### Define the following aliases: +### 1. Define the following aliases: ``` 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' ``` -### NEVER run docker-compose down **-v** in Production +### 2. NEVER run `docker-compose down -v` in Production ...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**. -### Colorize your branches +### 3. Colorize your branches Add the following to `~/.bashrc` ``` # Color git branches @@ -148,7 +148,7 @@ fi unset color_prompt force_color_prompt ``` -### Odoo Shell +### 4. Odoo Shell 1. Log into the odoo container ``` docker-compose exec odoo bash @@ -158,7 +158,7 @@ docker-compose exec odoo bash odoo shell --http-port=8071 ``` -### Odoo Scaffold +### 5. Odoo Scaffold 1. Log into the odoo container ``` docker-compose exec -u root odoo