mirror of
https://github.com/frappe/frappe_docker.git
synced 2024-12-23 02:28:57 +00:00
docs: migration command and variables
[skip travis]
This commit is contained in:
parent
cd42a60f8e
commit
ae396d2174
@ -271,3 +271,20 @@ Environment Variables needed:
|
||||
Environment Variables for PostgreSQL only:
|
||||
|
||||
- `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…
Reference in New Issue
Block a user