mirror of
https://github.com/odoocker/odoocker
synced 2025-11-04 23:29:19 +01:00
readme updates
This commit is contained in:
10
README.md
10
README.md
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user