mirror of
https://github.com/frappe/frappe_docker.git
synced 2025-02-11 08:28:26 +00:00
Merge pull request #458 from revant/docs-migrate
docs: migration command and variables
This commit is contained in:
commit
12d9760658
@ -271,3 +271,20 @@ Environment Variables needed:
|
|||||||
Environment Variables for PostgreSQL only:
|
Environment Variables for PostgreSQL only:
|
||||||
|
|
||||||
- `POSTGRES_PASSWORD`: Password for `postgres`. The database root user.
|
- `POSTGRES_PASSWORD`: Password for `postgres`. The database root user.
|
||||||
|
|
||||||
|
## Migrate Site
|
||||||
|
|
||||||
|
```sh
|
||||||
|
# Migrate ERPNext site
|
||||||
|
docker run \
|
||||||
|
-e "MAINTENANCE_MODE=1" \
|
||||||
|
-v <project-name>_sites-vol:/home/frappe/frappe-bench/sites \
|
||||||
|
-v <project-name>_assets-vol:/home/frappe/frappe-bench/sites/assets \
|
||||||
|
--network <project-name>_default \
|
||||||
|
frappe/erpnext-worker:$ERPNEXT_VERSION migrate
|
||||||
|
```
|
||||||
|
|
||||||
|
Environment Variables needed:
|
||||||
|
|
||||||
|
- `MAINTENANCE_MODE`: If set to `1`, this will ensure the bench is switched to maintenance mode during migration.
|
||||||
|
- `SITES`: Optional list of sites to be migrated, separated by colon (`:`). e.g. `erp.site1.com:erp.site2.com`. If not used, all sites will be migrated by default.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user