2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-11-09 23:00:56 +00:00

Merge pull request #335 from revant/docs-bench-helper

docs: bench helper commands
This commit is contained in:
Revant Nandgaonkar 2020-08-13 16:24:12 +05:30 committed by GitHub
commit 358e1ca7c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -203,3 +203,25 @@ Additional services can be pinged as part of health check with option `-p` or `-
This check ensures that given service should be connected along with services in common_site_config.json.
If connection to service(s) fails, the command fails with exit code 1.
## Frappe internal commands using bench helper
To execute commands using bench helper.
```shell
docker run \
-v <project-name>_sites-vol:/home/frappe/frappe-bench/sites \
--network <project-name>_default \
frappe/frappe-worker:$VERSION bench --help
```
Example command to clear cache
```shell
docker run \
-v <project-name>_sites-vol:/home/frappe/frappe-bench/sites \
--network <project-name>_default \
frappe/frappe-worker:$VERSION bench --site erp.mysite.com clear-cache
```
Use it to install/uninstall custom apps, add system manager user, etc.