From d5f38efa940a37c7330d75826f14bddeda9a3eb5 Mon Sep 17 00:00:00 2001 From: Revant Nandgaonkar Date: Thu, 13 Aug 2020 15:29:10 +0530 Subject: [PATCH] docs: bench helper commands [skip travis] --- docs/site-operations.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docs/site-operations.md b/docs/site-operations.md index 1a05525f..6807b2f4 100644 --- a/docs/site-operations.md +++ b/docs/site-operations.md @@ -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 _sites-vol:/home/frappe/frappe-bench/sites \ + --network _default \ + frappe/frappe-worker:$VERSION bench --help +``` + +Example command to clear cache + +```shell + docker run \ + -v _sites-vol:/home/frappe/frappe-bench/sites \ + --network _default \ + frappe/frappe-worker:$VERSION bench --site erp.mysite.com clear-cache +``` + +Use it to install/uninstall custom apps, add system manager user, etc.