2
0
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:
Revant Nandgaonkar 2021-04-12 12:45:20 +05:30 committed by GitHub
commit 12d9760658
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.