2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-09-18 18:19:02 +00:00

Update branch version while installing app

Both bench init and get-app need to be on the same version branch. 
Mismatch results into errors while installing app
This commit is contained in:
maheshk2k 2020-05-03 12:12:21 +05:30 committed by GitHub
parent 65522eeb46
commit ff73540ada
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,16 +117,16 @@ bench --site mysite.localhost clear-cache
To install an app we need to fetch it from the appropriate git repo, then install in on the appropriate site:
You can check [VSCode container remote extension documentation](https://code.visualstudio.com/docs/remote/containers#_sharing-git-credentials-with-your-container) regarding git creedential sharing.
Both frappe and erpnext must be on branch with same name. e.g. version-12
```shell
bench get-app myapp https://github.com/myusername/myapp.git
bench get-app --branch version-12 myapp https://github.com/myusername/myapp.git
bench --site mysite.localhost install-app myapp
```
For example, to install ERPNext (from the master branch):
Both frappe and erpnext must be on branch with same name. e.g. version-12
```shell
bench get-app erpnext https://github.com/frappe/erpnext.git
bench get-app --branch version-12 erpnext https://github.com/frappe/erpnext.git
bench --site mysite.localhost install-app erpnext
```