[UPD] doc production: better guide to move to dev a prod
This commit is contained in:
parent
82ae8e20a5
commit
91ab1e1a8e
1 changed files with 6 additions and 2 deletions
|
|
@ -98,10 +98,14 @@ cd /[EL_USER]/erplibre
|
||||||
## Move prod database to dev
|
## Move prod database to dev
|
||||||
|
|
||||||
When moving prod database to your dev environment, you want to remove email servers and install user test to test the
|
When moving prod database to your dev environment, you want to remove email servers and install user test to test the
|
||||||
database. WARNING, this is not safe for production, you will expose all data. Run:
|
database. WARNING, this is not safe for production, you will expose all data.
|
||||||
|
|
||||||
|
1. Copy your database image to directory image_db, exemple the image name is `my_db.zip`
|
||||||
|
1. Run
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
./script/database/migrate_prod_to_test.sh DATABASE
|
./script/database/db_restore.py --clean_cache --database test_my_db --image my_db
|
||||||
|
./script/addons/update_prod_to_dev.sh test_my_db
|
||||||
```
|
```
|
||||||
|
|
||||||
## Update production
|
## Update production
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue